It has various uses in Spanish, but all are associated in some way. It means "gift, prize, benefit, reward, will (to give something)". It comes from the Latin merces, edis ("reward"). 2º_ It was a courtesy title to address someone who might not have one of their own but deserved respect.
* Only one "like" per meaning and day, the more "likes" the meaning will appear higher in the list