Urine is formed in the kidneys in three stages: ultrafiltration, reabsorption and secretion, and water absorption. In ultrafiltration, blood undergoes filtration through the glomerulus in the Bowman's capsule, forming glomerular filtrate. During reabsorption and secretion, glucose, amino acids, and ions are reabsorbed into the blood while urea, potassium, and hydrogen ions are secreted into the renal tubules. Finally, in water absorption, excess water in the filtrate is absorbed in the collecting duct so that only 1 ml forms urine, while the rest is reabsorbed.