Kompany retired from professional football in 2020 having won four Premier League titles as the Cityzens' captain. Upon retirement, he took charge of Belgian side Anderlecht and managed for three years before heading to Burnley 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 after they finished 19th in the 2023-24 campaign.