* Noun: When referring to the act of showing compassion or forgiveness.
* Example: "He pleaded for mercy."
* Verb: When it means to show mercy or to be merciful.
* Example: "The king mercifully spared the prisoner's life."
It's important to consider the context to determine the correct part of speech.