The primary treatment for biliary atresia is the Kasai procedure (hepatoportoenterostomy), which aims to restore bile flow from the liver to the intestine. If the Kasai procedure is unsuccessful or the disease progresses, liver transplantation may be necessary.