The exact cause of primary biliary cirrhosis is unclear, but it is believed to be an autoimmune condition where the body's immune system mistakenly attacks its own bile ducts. Factors such as genetic predisposition, environmental triggers, and infections may contribute. In contrast, secondary biliary cirrhosis results from prolonged obstruction of the bile ducts, which can be due to gallstones, tumors, or strictures.