To make it simple and straightforward an Air Conditioner removes warm air from your home! AC's have refrigerant inside which is a chemical compound that transforms back and forth between liquid and gas states. Refrigerant is very efficient at absorbing heat, which is what it does when running in your vehicle or home.
There are 3 main stages the refrigerant goes through in an AC unit that helps keep temperatures cool.
Evaporation: As a liquid, refrigerant is evaporated in coils inside the home. As it evaporates (turns into a gas) it absorbs heat from the indoor air. This process cools the air and a blower fan then pushes the chilled air out into the house through ducts.
Compression: The "heart" of the AC unit, compresses the hot gaseous refrigerant, increasing its pressure and temperature so it's hotter than the outdoor temperature. These actions make the refrigerant then flow to the cooled condenser coils (on the outside of the home) as heat naturally flows from hot to cold objects.
Condensation: As the refrigerant passes through the coils in the condenser, which are cooled by an outdoor fan, the refigerant also cools, releasing its heat to the outside air. The refrigerant changes back to a liquid state, starting the cycle all over again.