Campeche is one of the 31 states which, with the Federal District, comprise the 32 Federal Entities of Mexico. Located in Southeast Mexico, it is bordered by the states of Yucatán to the north east, Quintana Roo to the east, and Tabasco to the south west. To the south it is bordered by the Petén department of Guatemala, to the east by Belize and to the west by the Gulf of Mexico. The state capital, also called Campeche, was declared a World Heritage Site in 1997. The formation of the state began with the city, which was founded in 1540 as the Spanish began the conquest of the Yucatán Peninsula. During the colonial period, the city was a rich and important port, but declined after Mexico's Independence.