When the body needs additional Mg2+, the TRPM6 channel allows it to be absorbed in the intestine and filtered from the fluids that pass through the kidneys by the distal convoluted tubules. When the body has sufficient or too much Mg2+, the TRPM6 channel does not filter out the Mg2+ from fluids but allows the ion to be released from the kidney cells into the urine. The channel also helps to regulate Ca2+, but to a lesser degree.