The utility model relates to the technical field of container houses, and provides a folding compartment which comprises a bottom plate. The top plate is provided with a plurality of first sliding grooves and can ascend and descend; one end of the first side plate is hinged to one end of the bottom plate, the other end of the first side plate is rotationally and slidably arranged at one end of the top plate, first protrusions are arranged on the two sides of the first side plate and used for being clamped into the first sliding grooves, and after the top plate ascends and descends, the first side plate is driven to rotate; one end of the second side plate is hinged to the other end of the bottom plate, the other end of the second side plate is rotationally and slidably arranged at the other end of the top plate, second protrusions are arranged on the two sides of the second side plate, after the second side plate rotates, the second protrusions are used for being clamped into the first sliding grooves, and after the top plate ascends and descends, the second side plate is driven to rotate. By means of the technical scheme, the problem that in the prior art, in the unfolding process of a folding compartment through hoisting equipment, continuous manual monitoring is needed to ensure precise alignment of house side plates is solved.