In plants and algae, a multicellular structure that produces gametes.