First mentioned in the year NUMBER@1 as an already important settlement , by the 13th century , LOCATION@1 became capital city of one of the most prominent MISC@1 principalities .

It was first mentioned in the year NUMBER@1 as an already important town . By the 13th century LOCATION@1 became the capital of an important area .
