William IV (William Henry; 21 August 1765 – 20 June 1837) was King of the United Kingdom of Great Britain and Ireland and of Hanover from 26 June 1830 until his death. William, the third son of George III and younger brother and successor to George IV, was the last king and penultimate monarch of Britain's House of Hanover.
He served in the Royal Navy in his youth and was, both during his reign and afterwards, nicknamed the "Sailor King".[1][2] He served in North America and the Caribbean, but saw little actual fighting. Since his two older brothers died without leaving legitimate issue, he inherited the throne when he was 64 years old. His reign saw several reforms: the poor law was updated, child labour restricted, slavery abolished in nearly all the British Empire, and the British electoral system refashioned by the Reform Act 1832. Though William did not engage in politics as much as his brother or his father, he was the last monarch to appoint a Prime Minister contrary to the will of Parliament. Through his brother, the Viceroy of Hanover, he granted that kingdom a short-lived liberal constitution.
At the time of his death, William had no surviving legitimate children but he was survived by eight of the ten illegitimate children he had by the actress Dorothea Jordan, with whom he cohabited for 20 years. William was succeeded in the United Kingdom by his niece, Victoria, and in Hanover by his brother, Ernest Augustus I.