When the kidneys are no more function, there should replaced by other means to sustain life
it called Renal Replacement Therapy, RRT for short
Renal Replacement Therapy have 4 options according to patient selection and other factors like the medical issues:
Dialysis:
have two options, hemodialysis or peritoneal dialysis

Kidney transplant:
from alive donor or from dead body

shut 1