The environmental control system (ECS) regulates temperature, humidity, ventilation, and pressurization in the aircraft cabin. It also provides cooling for avionics and transfers heat from systems like hydraulics. The ECS uses air conditioning and pressurization systems. Air conditioning controls temperature, humidity, and ventilation, while pressurization maintains safe oxygen levels at high altitudes. Pressurization systems also include safety valves and controls for rate of cabin pressure change. The ECS protects against icing and provides anti-g protection for pilots during maneuvers.