The 38-year-old retired from professional football in 2020 having won four Premier League titles with Manchester City. Upon retirement, he took charge of Anderlecht and managed for three years before heading to The Clarets in 2022. In his first season at the helm, the former defender helped the club win the Championship title and gain promotion to the Premier League, however, they lasted for just a season in the top flight before going back to the second division.