World population is growing approximately linearly at about 80 million per year. Thus, as time goes by, there is necessarily less space per person and this is particularly acute in cities. Perhaps this is why the engineering community seems to be obsessed with folding things. We develop a mathematical approach to “rigid folding” based on the use of piecewise rigid isometric mappings that have a group structure. The ideas are inspired by the way atomistic structures form naturally.