A wall box is a type of building material used to safely hold electrical wiring, switches, sockets and other components within a wall. Typically, these boxes are recessed into the wall so that the edge of the box sits flush with the face of the plaster or drywall.