These findings suggest that Mg2+ may contribute to alopecia areata by activating CD8+ T cells and enhancing their function, thereby promoting disease progression. This evidence concerns the gene CD8A and alopecia areata.