Original sentence: The Captaincy of São Vicente obtained success through exploration of the hinterland known as bandeiras, and was the main foundation to theViceroyalty of Brazil (which would later become the province of São Paulo)
Edited sentence: The Captaincy of São Vicente obtained success through exploration of the hinterland known as bandeiras, and was the main foundation of the Viceroyalty of Brazil (which would later become the province of São Paulo)