In the 10th century, the territory of Pressburg (what would later become Pozsony county) became part of Hungary (called the "Kingdom of Hungary" from 1000). It developed as a key economic and administrative centre on the kingdom's frontier. This strategic position destined the city to be the site of frequent attacks and battles, but also brought it economic development and high political status. It was granted its first known "town privileges" in 1291 by the Hungarian King Andrew III, and was declared a free royal town in 1405 by King Sigismund. In 1436 he authorized the town to use its own coat of arms.