In late 2017 Martin announced he would leave BMW after 5 years as a factory driver. He later announced he would join Aston Martin Racing as a factory driver to race in the 2018-19 FIA World Endurance Championship. In September 2020 Martin won the 24 Hours of Le Mans in the LMGTE Pro class together with Alex Lynn and Harry Tincknell for Aston Martin Racing. He took four more podiums during the season and finished runner-up in the Drivers' standings.