In vivo, Orai1/Orai2 double-deficient mice have impaired T cell-dependent antiviral immune responses, and are protected from T cell-mediated autoimmunity and alloimmunity in models of colitis and graft-versus-host disease. Here, ORAI2 is linked to colitis.