The air we breathe is made up of significant quantities of four gases:
- Nitrogen (78%)
- Oxygen (21%)
- Argon (0.94%)
- Carbon dioxide (0.04%)
A submarine (or a space ship, for that matter) is a sealed container that contains people and a limited supply of air. There are three things that must happen in order to keep air in a submarine breathable:
- Oxygen has to be replenished as it is consumed. If the percentage of oxygen in the air falls too low, a person suffocates.
- Carbon dioxide must be removed from the air. As the concentration of carbon dioxide rises, it becomes a toxin.
- The moisture that we exhale in our breath must be removed.
Carbon dioxide can be removed from the air chemically using soda lime (sodium hydroxide and calcium hydroxide). The carbon dioxide is trapped in the soda lime by a chemical reaction and removed from the air. Other similar reactions can accomplish the same goal.
The moisture can be removed by a dehumidifier or chemically. This prevents it from condensing on the walls and equipment inside the ship.
Here are some interesting links:

