The late distal tubule and cortical collecting tubule are composed of principal and intercalated cells. Principal cells reabsorb sodium and secrete potassium, while intercalated cells secrete hydrogen and reabsorb bicarbonate and potassium. The permeability of these segments to water is controlled by ADH levels. They play key roles in electrolyte balance and acid-base regulation.