In Geography, folding is a process whereby rock layers bend due to compressional forces.
Just as described in the question above, compressional forces mean that the two ends of the rock layers are being pushed inwards towards each other. The rock layer, just like the cloth layer described above, responds by bending or rumpling.