Pyrogens are substances that can cause fever by triggering the body's immune response. They can be classified as either endogenous or exogenous. Endogenous pyrogens are produced by the body's own immune cells, particularly monocytes and macrophages, in response to infection or inflammation. Exogenous pyrogens, on the other hand, are external substances such as bacterial toxins, viruses, or fungal components.