 By the eleventh century, the territorial magnates, like the margrave of Tuscany, were supreme and castles dotted the landscape.With the rise of the city-states after the collapse of Tuscan power in the early twelfth century, the powerful merchant families began to construct fortress and towers as residences in the cities.Well-preserved San Gimignano was the result of the struggle between Guelphs and Ghibellines.