Despite and in spite of are both prepositions meaning ‘regardless of‘, ‘even though’, or ‘notwithstanding’. They can be used interchangeably.
Despite is always written as one word (never ‘despite of‘)
In spite of is always written as three words (never ‘inspite of’)