 First news of settlements in the area dates from the 11th century AD, although the presence of Roman ruins testify the it was inhabited also in ancient times.In the Middle Ages Bastia was entangled in the struggle between the communes of Assisi and Perugia; in 1319, after a siege of seven months, troops from the latter ravaged it.Bastia was however quickly rebuilt with a new castle and 18 towers.