In 1995, the U.S. Public Health Service (USPHS) and the Infectious Diseases Society of America (IDSA) developed guidelines for preventing opportunistic infections (OIs) among persons infected with human immunodeficiency virus (HIV); these guidelines were updated in 1997 and 1999. This fourth edition of the guidelines, made available on the Internet in 2001, is intended for clinicians and other health-care providers who care for HIV-infected persons. The goal of these guidelines is to provide evidence-based guidelines for preventing OIs among HIV-infected adults and adolescents, including pregnant women, and HIV-exposed or infected children. Nineteen OIs, or groups of OIs, are addressed, and recommendations are included for preventing exposure to opportunistic pathogens, preventing first episodes of disease by chemoprophylaxis or vaccination (primary prophylaxis), and preventing disease recurrence (secondary prophylaxis). Major changes since the last edition of the guidelines include 1) updated recommendations for discontinuing primary and secondary OI prophylaxis among persons whose CD4+ T lymphocyte counts have increased in response to antiretroviral therapy; 2) emphasis on screening all HIV-infected persons for infection with hepatitis C virus; 3) new information regarding transmission of human herpesvirus 8 infection; 4) new information regarding drug interactions, chiefly related to rifamycins and antiretroviral drugs; and 5) revised recommendations for immunizing HIV-infected adults and adolescents and HIV-exposed or infected children.