By the 11th century , LOCATION@1 became a largely autonomous part of the LOCATION@2 , and became independent as the Principality of LOCATION@1 from the 16th century , until NUMBER@1 .

LOCATION@1 belonged to the Kingdom of LOCATION@3 from around the 10th century until the 16th century , when it turned into the Principality of LOCATION@1 .
