He represented Kingston upon Hull in parliament from 1774 to 1780, and from 1782 to 1784, and attained considerable reputation as an opponent of the war with America, and of the African slave trade. Fellow abolitionist of slavery, William Wilberforce, took Hartley's place as MP for Hull in 1780 and was co-Member during Hartley's second term.
