The English terms in spite of and despite are very similar in meaning and usage; in spite of this, English speakers sometimes find them confusing.
Despite means "even though," "notwithstanding," or "regardless of." It’s the opposite of "because of/due to," and can be used with a noun or gerund.
In spite of
In spite of means exactly the same thing and is used exactly the same way as despite.
The Bottom Line
The English terms despite and in spite of are synonyms. Despite might be a tiny bit more formal, but the two terms are interchangeable. Just be careful not to say something like "despite of" or "in despite" – it’s always either the three words in spite of, or just the single word despite.
More English Difficulties