Your brain constantly monitors this in order to maintain the proper pH balance in your body. The kidneys help the lungs maintain acid-base balance by excreting acids or bases into the blood. The kidneys' effect on acidity works much more slowly than that of the lungs.