Constituent Congress of Peru, 1822 ratified in succession to the former presidents of the Republic of Peru: José de la Riva Agüero and José Bernardo de Tagle (better known as the Marquis of Torre Tagle). After the proclamation of the independence of Peru, the ancient capital of the Viceroyalty of Peru, Lima, on July 28, 1821, General José de San Martín assumed command of the military political free departments of Peru, under the title protector, according to the decree of August 3, 1821. San Martín was the one who gave the state its first Peruvian flag, anthem, currency, and its administration and its first primitive
Trujillo, Peru and others. The Chimu culture built its primary settlement at what is known as Chan Chan, which was the capital, having an estimated 100,000 people at its peak. It is the largest pre-Columbian city built of adobe and has been designated a UNESCO World Heritage Site. Its remains are northwest of the current city center. The present Spanish–Peruvian city of Trujillo was founded in an ancestral territory populated by ancient indigenous civilizations. The Spanish founded new cities expressing their culture in what they called the "Viceroyalty of Peru". The Moche civilization flourished in northern Peru with its Huacas del Sol