The city of Caracas occupies the entirety of the Libertador municipality of the Capital District and part of the state of Miranda, specifically the municipalities of Baruta, Chacao, El Hatillo and Sucre, which until 2011 formed the Metropolitan District of Caracas, which enjoyed legal personality and autonomy within the limits of the Constitution and the law.