The origins of Randeck Castle are unknown, but in the tenth century Duke Arnulf may have built built the first medieval fortress on the hill in order to protect the land against the raids of the Hungarians.
Baron von Rotteneck is said to have built the castle in the 11th century. In the 13th century the Counts of Abensberg took possession of the castle. The owner Jack von Abensberg was known as robber baron and the city of Nuremberg waged war against him. In 1446 his castles were demolished and burnt down. Niclas, the last Count of Abensberg, was killed in 1485 in a feud with a neighbouring family.
The castle was attacked by Swedish army during the Thirty Years´ War. Both castle and convent were destroyed. In 1838 a large part of the castle just collapsed after heavy rainfalls.
References:Inverness Castle sits on a cliff overlooking the River Ness. The red sandstone structure evident today was built in 1836 by architect William Burn. It is built on the site of an 11th-century (c. 1057) defensive structure. Today, it houses Inverness Sheriff Court.
The castle is said to have been built by Máel Coluim III of Scotland, after he had razed to the ground the castle in which Macbeth of Scotland according to much later tradition, murdered Máel Coluim"s father Donnchad I of Scotland, and which stood on a hill around 1 km to the north-east.
The first Inverness Castle was partially destroyed by King Robert I of Scotland and a replacement castle was sacked in the 15th century by the Clan Donald during the Siege of Inverness (1429). The castle was occupied during the Raid on Ross in 1491.
In 1548 another castle with tower was completed by George Gordon, 4th Earl of Huntly (1514–1562). He was constable of the castle until 1562.