Guelphs and Ghibellines
During the struggle between the Guelphs and Ghibellines throughout the Holy Roman Empire, it was captured by Frederick II of Hohenstaufen on March 2, 1240, and provided with a line of walls.