The respiratory system's main job is to exchange gases with the environment and the circulatory system.