An air conditioner works by removing heat from the indoor air and expelling it outside, creating a cooler and more comfortable indoor environment. It operates through a closed-loop refrigeration cycle, with key components including a compressor, evaporator coil, condenser coil, and refrigerant. First, the compressor pressurizes and circulates refrigerant gas, which flows through the indoor evaporator coil. Warm indoor air is blown over this coil, causing the refrigerant to absorb heat from the air and evaporate into a low-pressure gas. The heat-laden gas is then pumped to the outdoor condenser coil, where it releases its heat and returns to a liquid state. The cycle repeats, continually transferring heat from inside to outside. The cooled indoor air is distributed through ductwork or a fan, providing a cooler and more comfortable indoor temperature.