In the late ninth century, the King Pepin I of Aquitaine founded a monastery in Figeac; the town developed around the monastery as an important city on the pilgrimage routes. In the 14th century, the walls of Figeac were built.