The DCT is involved in the selective reabsorption and secretion of ions, contributing to the regulation of blood pH, potassium, and sodium levels. The macula densa, a group of specialized cells in the DCT, senses the sodium concentration and helps regulate the filtration rate through feedback mechanisms.