Here's the breakdown:
* Despair: (noun) a feeling of utter hopelessness and dejection.
* Desperation: (noun) a state of despair, a feeling of being driven to drastic measures because of hopelessness.
Both words share the same root, despair, which means "to lose hope".