The National University of 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.