 The castle was mentioned for the first time on 20 October 1164 as "Castrum Marchburch".A settlement soon began to grow below the castle.Maribor was first mentioned as a market near the castle in 1204, and it received town privileges in 1254.