At the end of the 14th century, Kremnica became the capital of the mining towns in central Upper Hungary. The steady annual production of gold and silver guaranteed the prosperous development of the town. In the 15th century Kreminca was the second most important city in the Kingdom of Hungary. The town was continuously being granted new privileges and the deputies of the town occupied the second place in the Hungarian Diet (the first place was reserved for the representatives of Buda, the capital of the Kingdom).