Prostaglandins (PGs) play a crucial role in sleep regulation, yet the broader physiological context that leads to the activation of the prostaglandin-mediated sleep-promoting system remains elusive. In this study, we explored sleep-inducing mechanisms potentially involving PGs, including microbial, immune and thermal stimuli as well as homeostatic sleep responses induced by short-term sleep deprivation using cyclooxygenase-2 knockout (COX-2 KO) mice and their wild-type littermates (WT). Systemic administration of 0.4 µg lipopolysaccharide (LPS) induced increased non-rapid-eye movement sleep (NREMS) and fever in WT animals, these effects were completely absent in COX-2 KO mice. This finding underscores the essential role of COX-2-dependent prostaglandins in mediating sleep and febrile responses to LPS. In contrast, the sleep and fever responses induced by tumor necrosis factor α, a proinflammatory cytokine which activates COX-2, were preserved in COX-2 KO animals, indicating that these effects are independent of COX-2-related signaling. Additionally, we examined the impact of ambient temperature on sleep. The sleep-promoting effects of moderate warm ambient temperature were suppressed in COX-2 KO animals, resulting in significantly reduced NREMS at ambient temperatures of 30 °C and 35 °C compared to WT mice. However, rapid-eye-movement sleep responses to moderately cold or warm temperatures did not differ between the two genotypes. Furthermore, 6 h of sleep deprivation induced rebound increases in sleep with no significant differences observed between COX-2 KO and WT mice. This suggests that while COX-2-derived prostaglandins are crucial for the somnogenic effects of increased ambient temperature, the homeostatic responses to sleep loss are COX-2-independent. Overall, the results highlight the critical role of COX-2-derived prostaglandins as mediators of the sleep-wake and thermoregulatory responses to various physiological challenges, including microbial, immune, and thermal stimuli. These findings emphasize the interconnected regulation of body temperature and sleep, with peripheral mechanisms emerging as key players in these integrative processes.