Eventually, the viceroyalty would dissolve, as with much of the Spanish empire, when challenged by national independence movements at the beginning of the nineteenth century. These movements led to the formation of the majority of modern-day countries of South America in the territories that at one point or another had constituted the Viceroyalty of Peru. The conquest and colony brought a mix of cultures and ethnicities that did not exist before the Spanish conquered the Peruvian territory. Even though many of the Inca traditions were lost or diluted, new customs, traditions and knowledge were added, creating a rich mixed Peruvian culture. Two of the most important Indigenous rebellions against the Spanish were that of Juan Santos Atahualpa in 1742, and Rebellion of Túpac Amaru II in 1780 around the highlands near Cuzco.