Ascites is a buildup of fluid in the abdomen. It can happen when the liver is not working properly. Fluid fills the space between the organs and the abdominal lining, leading to swelling and pain.