Sir William Clayton, 5th Baronet
Sir William Robert Clayton, 5th Baronet (28 August 1786 – 19 September 1866) was an English Army officer and politician. 

He was the eldest son of Sir William Clayton, 4th Baronet of Harleyford, near Great Marlow, Buckinghamshire and educated at Eton college. He succeeded his father in 1834.

He joined the Army as an Ensign in the 10th Foot in 1804 and transferred as a lieutenant to the Royal Horse Guards in 1805, rising to captain in 1809. In 1812 he went with the Horse Guards to the Peninsula War and the following year took part in the battles of Vitoria, the Pyrenees and Pamplona. He was made major in 1815 and saw action at Quatre Bras and Waterloo in 1815. He went on half-pay in 1816 and was made lieutenant-colonel on half-pay in 1826. He was promoted colonel in 1841, major-general in 1851, lieutenant-general in 1858 and full general in 1865. 

He was a Member of Parliament (MP) for Great Marlow from 1832 to 1842. He was pricked High Sheriff of Buckinghamshire for 1846–47.

He died at Southsea in 1866. He had married Alicia Hugh Massy, the daughter and heiress of Lieutenant-Colonel Hugh O’Donel, MP of Tralee, co. Kerry. The marriage ended in an acrimonious divorce in 1832. They had 2 sons and 2 daughters, including Caroline Douglas who became Marchioness of Queensberry. His sons both predeceased him and he was therefore succeeded in the baronetcy and settled estates by his grandson William Robert Clayton (1842–1914).