Input (grade 13): The seat of a bishop until the 11th century, Trevi was a Lombard gastaldate, then, in the early 13th century, freed itself of outside rulership to become a free commune.
Output (grade 11): At the beginning of the 13th century, Trevi made itself independent and became a free commune.