In military science, a compound is a type of fortification made up of walls surrounding several buildings in the center of a large piece of land. The walls can either serve the purpose of being tall, thick, and inpenetrable, in which case they would be made of wood, stone, or some other like substance; or dangerous to attempt to scale, in which case they could be made of barbed wire or electrified. Compounds are designed to double as living spaces and military structures in the middle of hostile territory; they are also used by the extremely wealthy, powerful, or paranoid, to protect themselves against real or imagined threats to themselves or their possessions.