The town became the  principal burgh  of the kingdom during the reign of James III (1460?͠1488), and in the following years it blossomed.
After becoming the principal burgh, the town thrived.