 He became captain of the second-rate in 1706.After his naval career, Hamilton saw a place in parliament as a way of finding favour with the Government and hopefully a lucrative office.At the 1708 general election, Hamilton stood for Parliament at Great Marlow, and also at the family seat of Lanarkshire.