Rats and other vermin flourished inside the walls of medieval towns. Castles — designed to withstand a siege — often contained stores of surplus grain, vegetables, and herbs. Along with their cool, dark interior, these stores provided a superb habitat for rats and mice.