Edward Robertshaw Hartley (25 May 1855 – 18 January 1918) was a British socialist politician. Hartley began work in a mill at the age of ten, before becoming a warehouse clerk and then a butcher. He became an active socialist in 1885, in reaction to serious unemployment in his home town of Bradford. He was a founder member of the Bradford Labour Union and the Independent Labour Party (ILP). He stood for the party in Dewsbury at the 1895 general election, taking 10.4% of the vote, but was not elected. However, he did gain election to Bradford City Council that year, representing Manningham, and held his seat for over a decade. At the 1900 general election, he was nominated in Pudsey, but withdrew on the eve of the poll.