 In 1760, Rio Grande de São Pedro, which was formerly governed from Santa Catarina became its own captaincy, a type of administrative division.In 1763 the village was occupied by the Spanish.After constant disputes, Portugal reconquered the village in 1776, thanks to the actions of General Rafael Pinto Bandeira.