Rocks can deform when stresses exceed their strength. The three main types of deformation are elastic, ductile and brittle. Stress leads to strain, with tension causing stretching, compression causing thickening, and shear causing blocks to move past each other. How rocks deform depends on factors like temperature, pressure, strain rate and mineral composition. Deformation results in structures like faults, folds, joints and breccias providing evidence of past stresses. Mountains form through processes like folding, faulting and uplift associated with plate tectonics.