The pyramid is one of several ruins found near the volcanic peak of Cerro Blanco, in the coastal desert near Trujillo at the Moche Valley.
The other major ruin at the site is the nearby Huaca de la Luna, a better-preserved but smaller temple.
Located at the center of the Moche capital city, the temple appears to have been used for ritual, ceremonial activities and as a royal residence and burial chambers.
During the Spanish occupation of Peru in the early 17th century, colonists redirected the waters of the Moche River to run past the base of the Huaca del Sol in order to facilitate the looting of gold artifacts from the temple.
Looting and erosion due to El Niño continue to be major concerns to this day.