Twinning occurs when two crystals of the same substance share a composition surface or plane. There are four main types of twins: contact twins, which have a regular composition surface; penetration twins, which have an irregular composition surface; polysynthetic twins, which have three or more crystals twinned along the same law with parallel composition surfaces; and cyclic twins, which have successive composition planes that are not parallel. Twinning can result from errors during crystal growth, variations in temperature/pressure stresses on the crystal lattice, or stresses that cause the crystal to relieve strain through "warping".