when two forces act towards each other from opposite sides, rock layers are bent into "folds". how folds are formed due to compression is known as folding. folding is one of the endogenetic processes; it takes place within the earth's crust.