The kidney is a vital organ in vertebrates that plays a key role in filtering blood, removing waste products, and regulating fluid and electrolyte balance. It ensures homeostasis by maintaining osmotic balance, regulating blood pressure, and controlling the pH levels of the blood. The kidneys are essential for the process of osmoregulation, allowing organisms to adapt to varying environmental conditions.