The complex of palaces and plazas, temples and homes may have been built as a ceremonial site, a military stronghold, or a retreat for ruling elites—its dramatic location is certainly well suited for any of those purposes. The ruins lie on a high ridge, surrounded on three sides by the windy, turbulent Urubamba River some 2,000 feet (610 meters) below.