After Peru declared its independence in 1821,Cusco maintained its importance within the administrative structure of the country. Upon independence, the government created the Department of Cusco, maintaining authority over territory extending to the Brazilian border. Cusco was made capital of the department; subsequently it became the most important city in the south eastern Andean region.
At the beginning of the 20th century, the city's urban sprawl spread to the neighboring districts of Santiago and Wanchaq.
In 1911, explorer Hiram Bingham used the city as a base for the expedition in which he rediscovered the ruins of Machu Picchu.