The construction of Grobiņa Medieval Castle dates back to the mid-13th century when the castle was first mentioned in chronicles as “hus to Grobin”. It was built near the hill fort of Grobiņa. It was quite common in Courland to build castles near ancient Couronian strongholds. The first castle most probably was made of wood as it was burnt down in 1263. The castle was rebuilt in 1328. For centuries, the castle was an important military fortification until it lost its strategic importance due to military operations in 1795 and 1812.
During its existence, the castle was refurbished and rebuilt several times. The medieval walls, bastions and protective trenches built in the 17th century as well as the earth ramparts have been preserved to this day.