Viral infections have been linked to the onset of type I diabetes (T1D), with viruses postulated to induce disease directly by causing β cell injury and subsequent release of autoantigens and indirectly via the host type I interferon (IFN-I) response triggered by the virus. Consistent with this, resistance to T1D is associated with polymorphisms that impair the function of melanoma differentiation associated gene-5 (MDA5), a sensor of viral RNA that elicits IFN-I responses. In animal models, triggering of another viral sensor, TLR3, has been implicated in diabetes. Here, we found that MDA5 and TLR3 are both required to prevent diabetes in mice infected with encephalomyocarditis virus strain D (EMCV-D), which has tropism for the insulin-producing β cells of the pancreas. Infection of Tlr3-/- mice caused diabetes due to impaired IFN-I responses and virus-induced β cell damage rather than T cell-mediated autoimmunity. Mice lacking just 1 copy of Mda5 developed transient hyperglycemia when infected with EMCV-D, whereas homozygous Mda5-/- mice developed severe cardiac pathology. TLR3 and MDA5 controlled EMCV-D infection and diabetes by acting in hematopoietic and stromal cells, respectively, inducing IFN-I responses at kinetically distinct time points. We therefore conclude that optimal functioning of viral sensors and prompt IFN-I responses are required to prevent diabetes when caused by a virus that infects and damages the β cells of the pancreas.