The functionality of SMAs is based on their ability to undergo a reversible phase transformation between two different crystal structures: the high-temperature phase (austenite) and the low-temperature phase (martensite). When the material is deformed in its martensitic state and subsequently heated, it reverts to its original shape as it transforms back to austenite. This characteristic is known as the shape memory effect.