Histoplasmosis is caused by inhalation of aerosolized bird or bat droppings that contain the fungus Histoplasma capsulatum.