Stephen's coronation took place in Esztergom on either Christmas Day 1000 or January 1, 1001. From the time of his rule up to the beginning of the 13th century, the only mint for the country operated here. During the same period, the castle of Esztergom ("Estergon Kalesi" in Turkish ) was built. It served not only as the royal residence until the Mongol siege of Esztergom in 1241 (during the first Mongol invasion), but also as the center of the Hungarian state, religion, and Esztergom county. The archbishop of Esztergom was the leader of the ten bishoprics founded by Stephen. The archbishop was often in charge of important state functions and had the exclusive right to crown kings.