Ankylosing spondylitis (AS), psoriasis and inflammatory bowel disease (IBD) often coexist in the same patient and in their families. In AS, genes within the MHC region, in particular HLA‑B27, account for nearly 25% of disease hereditability, with additional small contributions from genes outside of the MHC locus, including those involved in intracellular antigen processing (that is, ERAP1, which interacts with HLA‑B27) and cytokine genes such as those involved in the IL‑17–IL‑23 pathway. Similar to AS, the strongest genetic signal of susceptibility to psoriasis and psoriatic arthritis also emanates from the MHC region (attributable mostly to HLA‑C*06:02 although other genes have been implicated), and gene–gene interaction of HLA‑C with ERAP1. The remaining hereditary load is from genes involved in cytokine production, specifically genes in the IL‑17–IL‑23 pathway, the NFκB pathway and the type 2 T‑helper pathway. In IBD, similar genetic influences are operative. Indeed, genes important in the regulation of the IL‑17–IL‑23 pathway and, in Crohn’s disease, genes important for autophagy (that is, NOD2 and ATG16L1 and IRGM) have a role in conferring susceptibility of individuals to these diseases. Thus, AS, psoriasis and IBD seem to share similar pathogenic mechanisms of aberrant intracellular antigen processing or elimination of intracellular bacteria and cytokine production, especially in the IL‑17–IL‑23 pathway.