 On 18 January 2019, Martínez rescinded his loan deal with Majadahonda and moved to CD Lugo of the same league, on loan until June.On his debut eight days later, he scored the opener in a 3–2 home win against his former club.He was released by West Ham on 1 July 2019, when his contract expired.