The first prepared mention of Loket to be a town originates from a 1234 deed when the main regarded royal Loket burgrave was recorded.[3] Based on archeological investigations, the foundation on the stone castle dates back into the third quarter of the twelfth century,[three] during the reign of Přemysl Otakar I,[4] possibly with the Czech Prince