The classic four groups
The textbook answer is that the four main types of fungi are Zygomycota, Ascomycota, Basidiomycota, and Deuteromycota. That list is a useful starting point, but it is out of date. Modern classifications compare DNA, and they have reshuffled several of these groups. The number of groups depends on which scheme you use.
Ascomycota: the sac fungi
Ascomycota produce spores inside tiny sacs called asci, which is why they are called sac fungi. Morels (Morchella) and truffles (Tuber) are sac fungi that people forage or buy. Baker’s yeast (Saccharomyces cerevisiae) is also in this group. Many plant pathogens belong here too, including gray mold (Botrytis cinerea). Many Penicillium and Aspergillus species, which are common molds, are placed here as well.
If you want to know more about this group, the question “What type of fungi are Ascomycota?” is a good next step.
Basidiomycota: the club fungi
Basidiomycota produce spores on club-shaped cells called basidia. This group includes many of the mushrooms foragers collect: gilled mushrooms, boletes, chanterelles, and puffballs. It also includes bracket fungi such as chicken of the woods (Laetiporus sulphureus) and artist’s conk (Ganoderma applanatum), the honey fungus (Armillaria), and the rust fungi that attack plants.
Ascomycota and Basidiomycota are grouped together in the subkingdom Dikarya, which reflects how closely related they are.
Zygomycota: an older group
Zygomycota was once used for the bread molds, such as black bread mold (Rhizopus stolonifer). Its members are now spread across several newer groups, so many current schemes do not use the name as a single natural group.
Deuteromycota: the imperfect fungi
Deuteromycota was a catch-all for fungi known only from asexual reproduction. The name “imperfect fungi” reflected the missing sexual stage. Molecular studies have since placed its members in Ascomycota or Basidiomycota, so the group is no longer used in modern classification.
Other groups in newer schemes
Some textbooks add Chytridiomycota, the chytrids, whose spores can swim. Others add Glomeromycota, which includes the arbuscular mycorrhizal fungi that partner with plant roots. Newer schemes treat these as separate groups.
Where the facultative parasites fit
Among the facultative parasites, honey fungus and chicken of the woods are Basidiomycota, while gray mold is Ascomycota. For a broader look at those examples, see “Examples of facultative parasitic fungi.” If you want to know how species get their names and places in these groups, the question “What is fungal taxonomy?” covers that.
Group membership says something about relationships, not about whether a mushroom is safe to eat. Two fungi in the same group can differ widely in edibility, and two fungi in different groups can look alike. Identification is still the step that matters for foragers.