Although climate change may expand the geographical distribution of several vector-borne diseases, the effects of environmental temperature in host defense to viral infection in vivo are unknown. Here, we demonstrate that exposure of mice to the high ambient temperature of 36 °C impaired adaptive immune responses against infection with viral pathogens, influenza, Zika, and severe fever with thrombocytopenia syndrome phlebovirus. Following influenza virus infection, the high heat-exposed mice failed to stimulate inflammasome-dependent cytokine secretion and respiratory dendritic cell migration to lymph nodes. Although commensal microbiota composition remained intact, the high heat-exposed mice decreased their food intake and increased autophagy in lung tissue. Induction of autophagy in room temperature-exposed mice severely impaired virus-specific CD8 T cells and antibody responses following respiratory influenza virus infection. In addition, we found that administration of glucose or dietary short-chain fatty acids restored influenza virus-specific adaptive immune responses in high heat-exposed mice. These findings uncover an unexpected mechanism by which ambient temperature and nutritional status control virus-specific adaptive immune responses.