The Gravensteen is a castle in Ghent originating from the Middle Ages. The name means "castle of the count" in Dutch.he present castle was built in 1180 by count Philip of Alsace and was modeled after the crusaders castles that Philip of Alsace encountered while he participated in the second crusade. Before its construction, there stood a wooden castle on the same location, presumably built in the ninth century. The castle served as the seat of the Counts of Flanders until they abandoned it in the 14th century. The castle was then used as a courthouse, a prison and eventually decayed. Houses were built against the walls and even on the courtyard and the stones of the walls were used to erect other buildings. At one time it even served as a factory. At the end of the 19th century, the castle was scheduled to be demolished.