The Pyramid of the Sun is located in Teotihuacan, which is an ancient Mesoamerican city located in the Basin of Mexico, approximately 30 miles northeast of modern-day Mexico City. Teotihuacan was established around 200 BCE and it is believed that the Pyramid of the Sun was built around 100 AD.