Fundamentally, air conditioning (and refrigeration) is merely the transport of heat from a lower temperature region to a higher temperature region - the opposite of heat's natural direction of flow.