A large-scale genetic study has defined the relationship between primary sclerosing cholangitis and other autoimmune diseases.