Dialysis is a procedure that replaces the function of the kidneys when they stop working properly.