An air conditioner seems as if it cools your home's air, but it actually makes your home less warm by removing heat from the indoor air and transferring that heat to the outdoor air.
Heat is extracted from the home by passing indoor air across a refrigerant coil in the indoor unit. Refrigerant lines then carry the heat to the outdoor unit, where it is released into the outside air. The cooling cycle continues until the indoor temperature reaches the thermostat setting.