Ammonia toxicity occurs when excess ammonia accumulates in the body, leading to harmful effects on the central nervous system and other organs. It is often associated with liver dysfunction, as the liver is responsible for converting ammonia into urea for excretion, and can result in symptoms ranging from confusion to coma if untreated.