Despite in a sentence

Normally, I only use "despite" with a noun followed but now I see this sentence: "despite people having different opinions, we still managed to get everyone on board". Is the use of "despite" in this sentence correct or not?


Solution 1:

"Despite" is used before a noun, a phrase functioning as a noun, or pronoun. A gerund verb phrase such as "having different opinions" functions as a noun.

In spite, despite and although
Gerund phrase