The area was inhabited as early as Nuragic times, due to the presence in the area of the imposing Nuragic sanctuary of Santa Vittoria, whose use by local people, with different functions, began in Neolithic times and continued during Punic, Roman and Byzantine times.
In the Middle Ages the town belonged to the Giudicato of Cagliari and was part of the curatoria of Siurgus. At the fall of the Giudicato (1258) it came under Pisan rule and from 1324 under Aragonese rule, which granted it the fiefdom to the Carroz family. The town was then incorporated into the marquisate of Mandas, which in 1603 was transformed into a duchy, the fiefdom of the Maza. In the Savoy era the lordship passed to the Tellez-Giron d’Alcantara, to whom it was redeemed in 1839 with the abolition of the feudal system.