 Martin signed a 3.5 year contract with Scottish Premiership club Hearts in January 2017.He made his debut for Hearts on 22 January 2017, against Raith Rovers in the Scottish Cup.Martin fell out of favour at Hearts after Craig Levein became manager in August 2017, and he was loaned to Dunfermline Athletic for part of the 2018–19 season.