The MUC1 gene evolved in mammals to protect barrier tissues from viral infections. Here, MUC1 is linked to viral infectious disease.