Here's how to understand the difference:
* Magnanimous is an adjective describing a person or their actions as being generous and forgiving.
* Magnanimity is the abstract noun representing the quality of being generous and forgiving.
Here are some examples:
* Adjective: "The king showed magnanimous forgiveness to his enemies."
* Noun: "The queen's magnanimity was legendary."