Hampi's history extends far beyond the medieval era. The region is traditionally identified with Kishkindha, the legendary monkey kingdom mentioned in the Hindu epic, the Ramayana. Ancient rock edicts of the Mauryan Emperor Ashoka, found in neighboring areas, confirm that the region was part of the Mauryan Empire in the 3rd century BCE. However, Hampi entered its golden age in 1336 CE when it was chosen as the capital of the Vijayanagara Empire by its founders, Harihara I and Bukka Raya I.
Over the next two centuries, Vijayanagara grew into one of the largest and wealthiest cities in the world. At its zenith under the rule of Emperor Krishnadevaraya (1509–1529), it was a thriving hub of international trade, attracting merchants from Portugal, Persia, and beyond. The city's wealth funded the construction of massive temple complexes, sophisticated irrigation systems, and grand royal enclosures.
The empire's glorious era ended abruptly in 1565 following the Battle of Talikota. A coalition of Deccan Sultanates defeated the Vijayanagara army, leading to a catastrophic sacking of the capital. Hampi was pillaged, set on fire, and eventually abandoned over several months, transforming the metropolis into the "City of Ruins." It remained largely swallowed by the jungle until it was surveyed by Scottish antiquarian Colin Mackenzie in 1800, sparking modern historical and archaeological interest.
