William IV ( William Henry ; 21 August 1765 -- 20 June 1837 ) was King of the United Kingdom of Great Britain and Ireland and King of Hanover from 26 June 1830 until his death .
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 .