Original: 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 .
Simplified: At the beginning of the 13th century , Trevi made itself independent and became a free commune .