Kidney failure, also known as end-stage renal disease (ESRD), occurs when the kidneys lose their ability to filter waste and excess fluids from the blood. This condition requires immediate medical attention and can be managed through dialysis or a kidney transplant.