Pellegrini took up the manager's role at Málaga in November 2010. He led Málaga to a fourth-place finish in his first full season and to qualification for the UEFA Champions League. He made it to the quarter-finals of the 2012–13 Champions League, becoming the only coach to take two teams to the Champions League quarter-finals in their debut seasons in the competition. On 22 May 2013, Pellegrini confirmed he would leave Málaga at the end of the 2012–13 La Liga season. On 14 June 2013, he was appointed manager of Manchester City, and won the Football League Cup and Premier League in his first season as manager, in the process becoming the first manager from outside Europe to manage a team to the English Premier League title. The title winning season was also noted for goal scoring prowess with Manchester City scoring 151 goals in all competitions – an English football record. Pellegrini also managed to take Manchester City to their first ever semi-final in Champions League in 2015–16, which was his last season after finishing in fourth-place with 66 points. He managed Hebei China Fortune from 2016 to 2018 before leaving the position in May. He was appointed as manager of West Ham United in May 2018 and lasted 18 months in charge before he was sacked in December 2019 after a poor run of results. On 9 July 2020 Spanish club Real Betis announced that he would be managing the side for the 2020–21 season.