Medieval castles evolved over time to better withstand attacks. Early castles consisted of a simple motte-and-bailey design with a wooden tower atop an artificial mound for protection. However, wood rotted easily so stone castles became more common. Castle defenses included thick curtain walls, moats, gatehouses with towers, arrow slits, and crenellations. Later designs featured concentric or multiple curtain walls to withstand siege weapons like trebuchets and battering rams. As siege techniques advanced, castles added more defenses until the 15th century when cannons introduced from China made castles obsolete through their ability to destroy stone walls.