autoimmune diseases ( ads ) are a family of more than 80 chronic , and often disabling , illnesses broadly characterized by immune system dysfunction leading to the loss of tolerance to self - antigens , presence of increased level of autoantibodies , inflammatory and mediatory cells and resulting chronic inflammation . the family of ads is remarkable for its complexity and similar underlying mechanisms despite the involvement of multiple organ systems . patients often endure lifelong debilitating symptoms , loss of organ function , reduced productivity at work and high medical expenses . importantly here , as many ads present before or during a woman 's reproductive years , they can have effects on fetal and maternal outcomes , such as pregnancy loss in women with systemic lupus erythematosus , vasculitis and type 1 diabetes , and infertility in women with rheumatoid arthritis . collectively , ads are common , affecting between five and nine percent of the population and are of considerable personal and public health burdens . the reasons for their high prevalence , gender and ethnic disparities and rising incidence and prevalence remain unclear . population - level phenomena such as mutation , migration , genetic drift and natural selection , have left an imprint on genetic variation that is likely to influence phenotypic expression in specific populations . given its role in driving genetic variation , population genetics can help elucidate human genetic diversity and , consequently , disease etiology . left untreated , most ads affect the ability to raise offspring that successfully reproduce and result in reduced reproductive fitness . thus , alternative forces must exist that permit the relative high frequency of risk alleles . as immune and inflammatory responses can be highly sensitive to environmental change , evolutionary adaptation to specific environments might have driven selection on immune - related genetic variants , impacting variant frequencies and leaving signatures of selection in the genome . given that infectious organisms are strong agents of natural selection , it is plausible that alleles selected for protection against infection confer increased risk of autoimmune and allergic diseases , or their complications , as the  hygiene hypothesis ' postulates . it is thought that the adaptation to pathogen pressure through functional variation in immune - related genes conferred a specific selective advantage for host survival , including protection from pathogens and tolerance to microbiota . however , the emergence of such variation conferring resistance to pathogens is also influencing ad risk in specific populations . in the past decade , multiple genome scans for signatures of selection on common variation have identified many immune - related loci . similarly , over 130 genome - wide association studies have established ad - associated alleles . this review summarizes the evidence for ad - associated loci under selection and the candidate selective pressures . collectively , these results support the hypothesis that ad is , in part , a pleiotropic consequence of alleles conferring pathogen resistance and help explain the number of shared autoimmune variants conferring both disease risk and protection , as well as the health disparities in individuals and populations . given that genomic variation can have clinically important consequences , elucidating the patterns of variation and the functional role of the selective pressure might contribute to a better understanding of disease etiology and the development of new therapies for improved disease management . the family of ads is remarkable for its complexity and similar underlying mechanisms despite the involvement of multiple organ systems . they disproportionately afflict women and are among the leading causes of death for young and middle - aged women . african americans are at higher risk than european americans for systemic lupus erythematosus and scleroderma ( systemic sclerosis ) , which they tend to develop earlier in life and experience more severe disease , but are at lower risk for type 1 diabetes , thyroiditis and multiple sclerosis . although most of these diseases are individually rare , in the aggregate they affect between five and nine percent of the population , and , for reasons that are poorly understood , their incidence and prevalence is rising . despite the variation in prevalence , incidence and disease severity that are known to vary among ethnic groups , little is known about the genetic etiology of these diseases in the different populations and the reasons for the ethnic disparities remain elusive . multiple lines of evidence suggest some degree of common genetic etiology in ads , including clustering of multiple ads in families and in individuals , and the number of confirmed genetic regions predisposing to several ads . this genetic overlap is exemplified by the well - known associations of the human leukocyte antigen ( hla ) region with all ads , as well as other loci associated with multiple ad , such as il23r , tnfaip3 and il2ra . nevertheless , the genetic heritability of ads is extremely variable , ranging from very high in crohn 's disease or ankylosing spondylitis to almost negligible in systemic sclerosis . table 1 summarizes the ads with published genome - wide association studies and the number of disease - associated loci uncovered from these genome - wide association studies . it is the general consensus that there is a common genetic background predisposing to autoimmunity , and that further combinations of more disease - specific variation at hla and non - hla genes , in interaction with epigenetic and environmental factors , contribute to disease and its clinical manifestations . results from the most comprehensive evaluation of shared genetic autoimmune loci to date suggest that instead of resulting from common risk factors , autoimmunity may result from specific and multiple different pleiotropic effects . this suggests that different population genetic factors ( for example , natural selection with coevolution with pathogens , random mutation , isolations , migrations and interbreeding ) in similar or distinct environments led to the establishment of the current plethora of loci that predispose to autoimmunity . as the authors conclude , these results generate an appreciation for potential interplay between population genetic factors and environmental factors . this appreciation has been renewed in a recent systematic analysis of loci shared among multiple ads , confirming that snp or haplotype sharing is complex , that often the most associated variant at a given locus differs and , even when shared , the same allele often has opposite associations . population - level phenomena are the likely reason behind this complexity of gene effects in different ads . human genome variation at the population level is typically thought to be shaped by five evolutionary processes : sexual reproduction , mutation , migration , random genetic drift and natural selection . in addition , recombination is often an underappreciated driver of genomic diversity and genome evolution , as recombination events ( the exchange of genetic material between homologous chromosomes ) are accompanied by biased gene conversion , which causes allele frequency shifts that mimic the effects of natural selection , shapes patterns of diversity in human genomes and contributes to substantially increased risks of hereditary disease . natural selection is the process by which a trait becomes either more or less common in a population depending on the differential reproductive success of those with the trait . natural selection drives adaptation , the evolutionary process whereby over generations the members of a population become better suited to survive and reproduce in that environment . negative ( or purifying ) selection decreases the prevalence of traits by purging deleterious alleles , and is the most common mechanism of selection . negatively selected variants are usually associated with rare mendelian disorders and have low population frequencies . as an example , endosomal toll - like receptors ( tlr3 , tlr7 , tlr8 and tlr9 ) , which are involved in the sensing of nucleic acids , mostly from viruses , have been subject to negative selection . positive selection increases the prevalence of adaptive traits by increasing the frequency of favorable alleles . positively selected variation is often associated with common complex traits and can achieve higher population frequencies . a classic example of positive selection is the lactase ( lct ) gene , in which independent variants associated with lactase persistence raised to high frequency in different populations owing to the strong selective force of adult milk consumption . the enrichment for signals of positive selection among genes associated with complex traits is well documented . balancing selection favors genetic diversity by retaining variation in the population as a result of heterozygote advantage and frequency - dependent advantage . one classical example is the hemoglobin- locus and the high prevalence of the hemoglobin- mutation that causes sickle cell anemia in regions where malaria is endemic : while individuals homozygous for the wild - type hemoglobin- are susceptible to malaria , and individuals homozygous for the hemoglobin- mutation have sickle cell anemia , heterozygous individuals are resistant to malaria and otherwise healthy . another pertinent example of balancing selection is the hla ( also known as major histocompatibility complex ( mhc ) ) region , where highly polymorphic loci have a central role in the recognition and presentation of antigens to the immune system . the heterozygote advantage against multiple pathogens contributes to the evolution of hla diversity , which confers resistance against multiple pathogens and explains the persistence of alleles conferring susceptibility to ad . nevertheless , there is also recent evidence that positive selection might be acting on specific hla alleles in a deme due to unique environmental pressures . quintana - murci and clark provide a comprehensive description of popular statistical methods to detect the different types of selection . there are three main classes of tests that detect regions under selection : ( i ) site frequency spectrum tests summarize the allele frequency distribution of polymorphisms , ( ii ) linkage disequilibrium tests uncover high - frequency haplotypes with extended linkage disequilibrium and ( iii ) population differentiation statistics detect local increases in the magnitude of population structure due to geographically restricted selection . allele frequency spectrum tests ( for example , tajima 's d , fay and wu 's h - test ) can detect recent selective events ( < 250  000 years ) and are powerful for detecting completed or quasi - completed selective sweeps ; haplotype - based tests ( for example , integrated haplotype score ( ihs ) , cross population - extended haplotype homozygosity ( xp - ehh ) test ) are very powerful to detect very recent events of positive selection ( < 30  000 years ) ; population structure statistics ( for example , fst test ) are powerful for detecting selective differences among population , especially those that occurred after the out - of - africa dispersals ( < 60  000 years ) . as recently reviewed , allele frequency spectrum and haplotype - based tests are powered to detect classic selective sweeps , in which a novel adaptive variant arises de novo in a population and rapidly increases in frequency to ( or near ) fixation , purging variation at linked sites as they spread . soft sweeps in which selection arises from variants already polymorphic in a population ( standing variation ) are more difficult to detect using these tests , especially when an adaptive trait is influenced by multiple loci . however , in a geographically restricted population being subjected to adaptive pressures , selection is likely to favor a weaker signature of adaptation , which may include subtle shifts in allele frequencies at multiple loci , resulting in an excess of allele frequency differentiation . recent studies suggest that such soft sweeps may have been the most common mechanism of adaptation in recent human evolution . interestingly , immune response pathways show evidence of polygenic adaptation , the process in which adaptation occurs by simultaneous selection on variants at many loci . hence , methods based on population structure may be more useful in studies of recent human natural selection as they can detect more subtle changes in allele frequency . as revised , it has been hypothesized that , in addition to genetic ( sequence ) variation , heritable epigenetic modifications can affect rates of fitness increase , as well as patterns of genotypic and phenotypic change during adaptation . however , the role of epigenetic variation in the response to natural selection has not been formally assessed , as the methodology to test signatures of natural selection on epigenetic variation is just emerging . given that , if untreated , ads can diminish reproductive potential and impair the ability to raise offspring that successfully reproduce , some evolutionary process must sustain the relative high frequency of risk alleles seen in current populations around the world . as the human genome is shaped by adaptation to environmental pressures at the population level , one plausible reason for the higher frequency of disease risk alleles may be the direct effect of population - specific natural selection . this hypothesis is supported by the experimental evidence for mhc heterozygote superiority against multiple pathogens , a mechanism that would contribute to the evolution of hla diversity and explain the persistence of alleles conferring susceptibility to disease . there is compelling evidence that natural selection is acting on a significant fraction of the human genome . immune function genes and pathways are consistently reported in tests for natural selection . as a result of several genome - wide scans , over 300 immune - related genes have been suggested as putative targets of positive selection . although the challenge in validating the true signals remain , several genes involved in immune - related functions have been shown to be under selection . over 40 regions with evidence for selection and associated with at least one ad have been reported ( table 2 ) . although slightly over half of these regions seem associated with a single disease , close to half are shared among ads , including the hla region , ptpn22 , tnfsf4 , arhgap31-cd80 , tnip1 and tyk2 . a few ads have reported loci with signatures of positive selection : inflammatory bowel disease ( crohn 's disease and ulcerative colitis ) , celiac disease and systemic lupus erythematosus . several of the genes in table 2 show patterns of genetic variation that are consistent with evidence for recent positive selection , such as the ptpn22 , itpr3 and blk regions , or snps in clec16a and uhrf1bp1 . as discussed in the next section , resistance to protozoa and tuberculosis infection have been implicated as the selective pressures for ptpn22 and uhrf1bp1 , respectively . interestingly , the systemic lupus erythematosus susceptibility allele in uhrf1bp1 is associated with decreased uhrf1bp1 rna expression in different cell subsets , suggesting that the disease risk allele under selection has a regulatory effect . it is noteworthy that alleles under selective pressure can confer increased risk of ad manifestations , as shown by the evidence that variants within the apol1 gene associated with resistance to human african trypanosomiasis ( aka sleeping sickness ) in some african populations predispose to end - stage kidney disease in systemic lupus erythematosus . the wide variety of environments inhabited by human populations is likely exerting different selective pressures that lead to adaptation through natural selection . climatic factors such as altitude , latitude , ultra - violet radiation levels , temperature , as well as diet and pathogens have been reported as agents of selection driving adaptations to these environments and lifestyles . for example , several correlations between temperature , body mass and metabolic rates have been reported , correlations between latitude with skin pigmentation are well - known , and latitude combined with specific genetic variation have been reported to increase susceptibility to hypertension . signals of natural selection driven by annual photoperiod variation have been reported for schizophrenia , bipolar disorder and restless leg syndrome risk variants . in a comprehensive genome - wide test for adaptations to continuous climate variables , hanckock et al . found correlation between snps and climate variables , including an enrichment of individual snps involved in pigmentation and immune response , as well as for pathways related to uv radiation , infection and immunity , and cancer . they note that their enrichment for pigmentation and immune response phenotypes contrasts with the metabolic traits with common evidence for adaptations to diet , subsistence and ecoregion . in a recent analysis of correlations between genetic risk of multiple diseases and worldwide migration trajectories , the authors report that variants associated with primary biliary cirrhosis , alopecia areata , inflammatory bowel disease , systemic lupus erythematosus , systemic sclerosis , ulcerative colitis and vitiligo , have undergone genetic risk differentiation associated with migration . in addition to these general correlations between climatic variables and particular traits , examples of selective pressures driving natural selection of specific loci include malaria resistance and -globin gene mutation , lactose tolerance and the lactase ( lct ) gene variation , skin pigmentation and the slc24a5 gene variation , high - altitude tolerance and the epas1 gene variation , and adaptation to cold resistance and the uncoupling protein ucp3 . interestingly , expression qtls ( eqtls ) from immune function and metabolism genes are enriched in signals of environmental adaptation , which highlights the importance of regulatory variations in local adaptation . nevertheless , the strongest effect of climate is in shaping the spatial pattern and species diversity of human pathogens , which is directly relevant to ad predisposition . as recently reviewed , in the constant co - evolutionary battle between host and pathogen , pathogens that diminish reproductive potential , either through death or poor health , drive selection on genetic variants that affect pathogen resistance . according to the  hygiene hypothesis ' first proposed by strachan in 1989 , the increased disease prevalence of autoimmune and allergic diseases in industrialized countries may be due to modern society 's limited pathogen exposure . the hygiene hypothesis posits that humans have adapted to infectious exposures that were the norm in the past and that exposure was protective against ad . over many generations environmental pressure may have favored alleles that affect resistance to pathogenic microorganisms , allowing humans to respond to immune system challenges differently but resulting in an increased risk of ads . as hancock et al . suggested , it is likely that selection signals in immune - related loci may implicate variants evolving under a model of antagonistic pleiotropy , where the selective pressure was pathogen resistance , and the autoimmune disorder is a pleiotropic consequence of the resistance allele . this could hence be a mechanism explaining the prevalence of ad risk alleles that are common in the population . indeed , pathogens have been the main selective pressure through human evolution . in an analysis that included climate , diet regimes and pathogen loads , fumagalli et al . showed that the diversity of the local pathogenic environment is the predominant driver of local adaptation , and that climate conditions only had a relatively minor role . in addition , they reported an enrichment of genes associated to ads , such as celiac disease , type 1 diabetes and multiple sclerosis , which supports the hypothesis that some susceptibility alleles for ads may be maintained in human population due to past selective processes . the enrichment for signals of positive selection in inflammatory - disease susceptibility loci has been recently corroborated . recent reviews of selection signatures left by pathogen - exerted pressure , including immune - related genes , can be found elsewhere . genetic regions associated with susceptibility to different ads and evidence of selection that has been attributed to host  pathogen coevolution are shown in table 2 . in slightly less than half of the regions with evidence for selection and ad - association , variation in the hla and sh2b3 has been reported as a protective factor against bacterial infection . variants in the ifih1 gene , whose protein is a cytoplasmic helicase that recognizes rna of picornaviruses and mediates induction of interferon response to viral rna , have been shown to affect ifih1 function and host antiviral response . in the context of systemic lupus erythematosus ( sle ) has shown that fcgr2b is important in controlling the immune response to plasmodium falciparum , the parasite responsible for the most severe form of malaria , and suggests that the higher frequency of human fcgr2b polymorphisms predisposing to sle in asians and africans may be maintained because these variants reduce susceptibility to malaria . machado et al . has suggested that helminth infection has driven positive selection of fcgrs variation . grossman et al . implicated salmonella typhimurium and other exposures that directionally drive selection of the toll - like receptor 5 ( tlr5 ) gene , which is involved in recognition of flagellated bacteria . unlike endosomal tlrs , such as tlr7 and tlr8 , that have been subject to purifying selection , cell - surface tlrs involved in pathogen recognition ( tlr1 , tlr2 , tlr4 , tlr5 , tlr6 and tlr10 ) experienced more relaxed constraints . uhrf1bp1 has been shown to be significantly differentially expressed in primary dendritic cells upon mycobacterium tuberculosis infection , suggesting that response to tuberculosis has shaped genetic variation at this locus . nod2 shows complex signatures of selection , with some variation consistent with neutrality and other with balancing or recent positive selection , probably reflecting its association with multiple traits ( crohn 's disease , ulcerative colitis and mycobacterial infections ) . another complex pattern is that observed for the nonsynonymous variant in ptpn22 that increases the risk of sle , rheumatoid arthritis , type 1 diabetes , vitiligo , autoimmune thyroid disease and ulcerative colitis , but is protective against crohn 's disease , despite ulcerative colitis and crohn 's disease being closely related phenotypes . it is important to highlight examples where there is strong statistical evidence of selection plus an experimentally validated phenotypic effect likely to predispose to autoimmunity or its complications , as these examples provide the most convincing evidence of positive selection increasing ad susceptibility . these include the sle - associated polymorphism of the inhibitory receptor fcgr2b , which is found at higher frequency in african and asian populations where malaria is endemic and enhances phagocytosis of plasmodium falciparum - infected erythrocytes , demonstrating that fcgr2b is important in controlling the immune response to malarial parasites . experimental characterization of a nonsynonymous variant in tlr5 , another sle - associated gene , showed that it leads to altered nf-b signaling in response to bacterial flagellin . functional analysis revealed that cells from individuals carrying the sh2b3 risk allele display an increased proinflammatory cytokine production in response to muramyl dipeptide , a component in all bacterial cell walls , indicating that sh2b3 has a role in protection against bacteria infection . as previously noted , it is noteworthy that variants within the apol1 gene known to be under strong selective pressure in some african populations predispose to a manifestation of sle , end - stage kidney disease . apol1 has a role in innate immunity by protecting against trypanosoma brucei infection , the parasitic protozoa transmitted by the tsetse fly that causes human african trypanosomiasis ( a.k.a . there is compelling evidence that the kidney disease risk alleles ' frequencies increased rapidly because of their potential protective effects against human african trypanosomiasis . given that these disease risk adaptive alleles have been functionally validated , these examples support the hypothesis that the increased prevalence of ads may result , at least partially , from past events of selection that increased host resistance to infection . this review summarizes the genetic regions associated with susceptibility to different ads and concomitant evidence for selection , including known agents of selection when known . uncovering these ad - associated loci under selection underscores the importance of population genetics and how the understanding of human genetic diversity is crucial to understanding disease etiology or treatment response at both the population and individual levels . progress achieved in recent years is a direct consequence of large - scale projects such as the hapmap and hgdp . however , the common variation analyzed by these projects does not capture the novel , deleterious or functional variants that , together with common variation , distinguish global human populations . now , with genome sequence information available on a population scale from projects like the 1000 genomes , the role of selection in shaping ad risk can be assessed with unprecedented detail in an unbiased fashion . recent studies using whole - genome sequence data helped identify the established functional snps in known loci and report novel candidate regions for positive selection . in the future , analyses of heritable epigenetic variation will unveil signatures of natural selection on epigenetic variation . the complexity of gene effects in different ads is remarkable , as shown , for example , by the complex signatures of selection seen at nod2 , and the plethora of shared variants that increase ad predisposition concordantly or discordantly , such as for ptpn22 . these observations illustrate that the model whereby ad risk alleles are positively selected due to their protective effects against infections is naive . a combination of population - level phenomena , including possibly bottlenecks , migration , admixture , natural selection and random genetic drift , are likely contributors to this complexity of gene effects . given the complex history of selective pressures acting on humans , unequal selective pressures and a diverse spectrum of plausible evolutionary models are expected to be exerted on susceptibility loci for ads . it is likely that several pathogens have exerted pressure on the same loci and that selection can vary in form , intensity , time and space , which is consistent with the observation that both risk and protective alleles for ads increased in frequency due to selection . for most regions , the exact selective pressure leaving the signature of selection is unclear . clearly , these signatures are not necessarily the result of adaptation , but might be a consequence of random genetic drift . in any case , regardless of the population phenomenon shaping current human genetic diversity , this genetic variation is the basis of clinically relevant traits at both the individual and population levels . an important next step to delineate the selective advantage conferred by these ad risk variants are functional studies using in vitro experiments and model organisms to identify the underlying functional variants and quantify the phenotypic consequences of the candidate adaptive alleles . pathogen coevolution is ongoing and , despite the emergence of new pathogens ( for example , hiv ) , potential pathogens driving these host - specific adaptations are expected to have long - standing relationships with humans , including those that cause malaria , smallpox , cholera , tuberculosis and leprosy , as well as the human microbiome . regardless of the agent of selection and the reasons for the emergence of both common and rare ad - causing alleles , incorporating population genetics to understand human genetic diversity will lead to a better understanding of the causes of health disparities , identification of functional variants and discovery of cellular mechanisms and contribute to the development of new therapies .