The National University of San Marcos (Spanish: Universidad Nacional Mayor de San Marcos, UNMSM) is a public research university located in Lima, the capital of Peru. In the Americas, it is the first officially established (privilege by Charles V, Holy Roman Emperor) and the oldest continuously operating university.
The university started in the general studies that were offered in the convent of the Rosario of the order of Santo Domingo—the current Basilica and Convent of Santo Domingo—in around 1548. Its official foundation was conceived by Fray Thomas de San Martín on May 12, 1551; with the decree of Emperor Charles I of Spain and V of the Holy Roman Empire. In 1571, it acquired the degree of pontifical granted by Pope Pius V, with which it ended up being named the "Royal and Pontifical University of the City of the Kings of Lima". It is also referred to as the "University of Lima" throughout the Viceroyalty.