Ursodeoxycholic acid is a bile acid used to treat certain liver diseases, including primary biliary cholangitis, by reducing cholesterol absorption and improving bile flow. It is also used to dissolve cholesterol gallstones in patients who prefer a non-surgical treatment option.