Medieval Scotland was organized around a monarch, knights who protected castles like Stirling Castle, and a hierarchical social structure consisting of peasants who lived in Ferm Toun farm towns and worked the land using a runrig system of shared strips while poorer cottars lived in basic dwellings. Towns also developed as medieval burghs with structures like Melrose Abbey.