Fever is commonly caused by infections such as viruses, bacteria, or fungi, leading to an elevation in body temperature as part of the immune response. Other potential causes include inflammatory conditions (e.g., rheumatoid arthritis), heat exhaustion, certain medications, and even some cancers. The fever mechanism is primarily orchestrated by pyrogens, substances that induce fever, which can be endogenous (produced by the body) or exogenous (derived from pathogens). Understanding the underlying cause of a fever is crucial, as it can guide appropriate diagnostic and therapeutic measures.