Liver failure occurs when the liver becomes unable to function. It can be the result of years of deterioration, or it can have a sudden onset, depending on the cause.

Liver failure can give your urine a foul odor, but chances are a person with liver failure will first notice other signs and symptoms:
Liver Failure

Symptoms of Liver Failure

Diarrhea
Fatigue
Loss of appetite
Nausea
More serious signs of liver failure include:
Yellowing of the skin (jaundice)
A swollen abdomen
Feeling disoriented or confused (hepatic encephalopathy)
Bleeding easily
Sleepiness
Coma
Liver failure is a serious, life-threatening condition that requires immediate medical care. If you suspect you have symptoms of liver failure, seek a doctor's advice right away.
Related:

Foods, Drinks and Spices that Make Your Pee Smell Bad

What Is the Cause of Stinky Urine?