
A shell keep is a form of medieval fortification, best described as a stone structure encircling the top of a motte.
In English castle morphology, shell keeps are perceived as the successors to motte-and-bailey castles, with the wooden fence around the top of the motte replaced by a stone wall. Castle engineers during the Norman period did not trust the motte to support the enormous weight of a stone tower keep (though this was occasionally attempted, as at Duffus Castle, Moray). A common solution to this problem was to replace the palisade with a stone wall and then build wooden buildings backing onto the inside of the wall.
A gazetteer compiled by archaeologist Robert Higham counted 21 shell keeps in England and Wales. The majority were built in the 11th and 12th centuries. However, the form remained fashionable in Devon and particularly Cornwall into the later Middle Ages, with the shell keep-like castle at Restormel being built in the 1270s or '80s, and the keep at Totnes being rebuilt in the 14th century. Shell keeps are also occasionally seen in mainland Europe, as at Gisors and Leiden.
Surviving examples of shell keeps include:

In addition Farnham and Berkeley castles have stone enclosed mottes which may be interpreted as shell keep variations. Farnham's shell keep replaced a stone tower on the motte, demolished in the Anarchy, while Berkeley has a forebuilding more akin to those of tower keeps than other shell keeps. At both sites, the complete encasement of the motte provides a larger area within the shell wall. At other sites such as Durham, Warkworth, Clifford's Tower (York) and Sandal (Wakefield), shell keeps may have evolved into a tower proper. Clifford's Tower is often misinterpreted by modern visitors as a shell keep due to damage sustained during an explosion in 1684, which removed the roof and its central supporting masonry. True shell keeps were a stone wall around the upper perimeter of the motte with lean-to buildings against this outer wall and a small courtyard in the middle.
Although Restormel Castle is often considered the archetypal shell keep, it sits uncomfortably within the category. Rather than being built on a motte, it occupies a wide, low platform, with the earth piled against the walls to give a motte-like appearance. In addition, the curtain wall encloses what is essentially a complete manor house, forming the lord's primary accommodation rather than supplementing that in the bailey. For this reason some historians, such as Jeremy Ashbee, consider the structure to be an inner ward rather than a "true" shell keep. Similar circumstances apply at Alnwick Castle, where the present 14th and 19th century keep (or inner ward) incorporates parts of what may have been a large 12th century shell keep on a low mound.
Unusually Lewes and Lincoln castles both feature two separate mottes which may have had shell keeps upon both of them.[citation needed] The reason for this is unclear but given that Lincoln Castle is adjacent to the cathedral, one shell keep may have been for the castellan (castle holder) and the other for the bishop.[citation needed] In each case, only one shell keep survives.