The Federal District (DF) of Mexico City is the capital city of the United States of Mexico and has a population of 8,851,080 inhabitants (the Mexico City Metropolitan Area has 20,137,152 inhabitants), according to the latest official census .