Histoplasmosis is an infection caused by a fungus called Histoplasma. The fungus lives in the environment, particularly in soil that contains large amounts of bird or bat droppings.