The respiratory control centers, located in the medulla oblongata and pons of the brainstem, regulate the rate and depth of breathing by integrating neural and chemical signals. These centers ensure proper gas exchange and maintain homeostasis by responding to changes in carbon dioxide, oxygen, and pH levels in the blood.