Here the authors show that STIM1 and STIM2, which activate the Ca2+ channel ORAI1, are essential for the differentiation of peripheral Treg cells into tissue-resident and follicular Treg cells and their ability to limit autoimmunity in mice. Here, ORAI1 is linked to Autoimmunity.