How do Air Conditioners work

How do air conditioners work?