James II and VII (14 October 1633O.S. – 16 September 1701) was King of England and Ireland as James II and King of Scotland as James VII, from 6 February 1685 until he was deposed in the Glorious Revolution of 1688. The last Roman Catholic monarch of England, Scotland and Ireland, his reign is now remembered primarily for struggles over religious tolerance. However, it also involved the principles of absolutism and divine right of kings and his deposition ended a century of political and civil strife by confirming the primacy of Parliament over the Crown.

James inherited the thrones of England, Ireland and Scotland from his elder brother Charles II with widespread support in all three countries, largely based on the principle of divine right or birth. Tolerance for his personal Catholicism did not apply to it in general and when the English and Scottish Parliaments refused to pass his measures, James attempted to impose them by decree; it was a political principle, rather than a religious one, that ultimately led to his removal.

More Info: en.wikipedia.org