Indeed, Scotland was excommunicated during the Island wars and when it was ready to rebuild, the King noticed that the French had taken Dublin and gifted it to the pope rather than giving it to Scotland.
The Scottish king however was not one to be meddled with and took Dublin back from the papacy, having nothing to lose.
Bookmarks