Ladislaus IV of Hungary
In 1273, King Otakar II of Bohemia occupied the castle. Even though he took the children of Sopron's nobility with him as hostages, the city opened its gates when the armies of King Ladislaus IV of Hungary arrived. The king rewarded Sopron by elevating it to the rank of free royal town.