The city of Mexico-Tenochtitlan was founded by the Mexica people in 1325. The old Mexica city that is now referred to as Tenochtitlan was built on an island in the center of the inland lake system of the Valley of Mexico, which is shared with a smaller city-state called Tlatelolco. According to legend, the Mexicas' principal god, Huitzilopochtli, indicated the site where they were to build their home by presenting a golden eagle perched on a prickly pear devouring a rattlesnake.