Original: It generally allied itself with Perugia in order to defend itself from nearby Spoleto, and fought several wars with other neighboring communes, with varying outcomes, including invasion by Spoleto in the 14th century and a brief but unhappy rule of the Trinci warlords of Foligno.
Simplified: It often fought on the side of Perugia to defend itself against nearby Spoleto, and fought wars with other communes in the area, winning some and losing some.