What is the primary function of an expansion valve in an HVAC system?

The primary function of an expansion valve is to regulate the amount of compressed liquid refrigerant moving into the evaporator, removing pressure from the liquid refrigerant to allow expansion or change of state from a liquid to a gas in the evaporator. This process enables the refrigerant to absorb heat from the surrounding air or water in the evaporator.