is in spite of a preposition?
Despite and in spite of mean exactly the same, but despite is more common than in spite of. Despite and in spite of are prepositions. Both expressions can be followed by a noun or noun-equivalent. I enjoyed the movie despite having a headache.