Hepatic encephalopathy is a serious brain condition caused by liver disease or failure, where the liver cannot remove toxic substances from the blood that normally affect brain function. This results in confusion, altered consciousness, and neurological symptoms that require urgent medical management.