Most early castles were first built from earth and stone. Then in the 12th century, castles started to transform from timber and earth to stone castles. But each had the same objective; protecting land and a safe haven for traveling peasants or merchants. Every castle had basic structures such as towers, walls, and a gate house.