Agbonlahor made six appearances for Villa during 2017–18 and scored a single goal, during the first game of the season against Hull City. His final game for the club came against Sheffield United on 23 December 2017. He left the club at the end of the season after his contract was not renewed, ending a 17-year association with his hometown club. During his career at Villa, he has scored 86 times in 391 appearances and is the club's record Premier League scorer with 73 goals. He retired from playing on 27 March 2019 at the age of 32.