The origins of early medieval period are attributable to being reminded Tirli for the first time in a document dated 814. At that time the town consisted of scattered settlements, which still did not constitute a real town. During the following centuries, the town is again mentioned in some documents dating from the 12th century.