 The area of Sant'Andrea has been inhabited since prehistoric times, as testified by the presence of several nuraghi and other findings.The settlement originated as a Phoenician stronghold, later conquered by the Romans, who had several villas here.In the Middle Ages it was part of the "curatoria" (shire) of Trexenta within the Giudicato of Cagliari and, subsequently, was owned by the counts of Capraia (1258) and, from 1295, by the Giudicato of Arborea.