The system works by extracting heat from the indoor environment and transferring it outside. The indoor unit releases cool air into the room, while the outdoor unit dissipates the heat. This cycle is facilitated by a refrigerant that circulates between the two units. The system can also be reversed to provide heating during the colder months.