In fungi, sporangia can play a role in both asexual and sexual reproduction. They produce spores that, upon dispersal, can germinate into new fungal structures.