William Hamilton (1665? – 24 May 1751) was a Scottish poet. He wrote comic, mock-tragic poetry such as "The Last Dying Words of Bonny Heck" - a once-champion hare coursing greyhound in the East Neuk of Fife who was about to be hanged, for growing too slow. It is written in anglified Scots, with a sprightly narrative and wry comic touches.