Snodgrass spent most of the 2017–18 season on loan at Aston Villa, after which he returned to West Ham. He scored his first two goals for West Ham in their 8–0 win against Macclesfield Town in the EFL Cup on 26 September 2018. In March 2019, Snodgrass was charged by the Football Association with allegedly abusing anti-doping officials who were visiting West Ham's training ground on 6 February 2019 to conduct out-of-competition testing. The following month, Snodgrass was fined £30,000 and given a one-match ban for the offence. In July 2019, Snodgrass signed a one-year extension to his contract which would keep him at the club until the summer of 2021, with a further 12-month option. However, Snodgrass left the club to join West Bromwich Albion on 8 January 2021.