The aim of this study was to determine whether and how poultry litter compost and dairy manure compost alter the microbial communities within field soils planted with spinach. In three successive years, separate experimental plots on two fields received randomly assigned compost treatments varying in animal origin: dairy manure (DMC), poultry litter (PLC), or neither (NoC). The composition and function of bacterial and fungal communities were characterized by the amplicon sequencing of marker genes and by the ecoenzyme activity, respectively. The temporal autocorrelation within and among years was adjusted by principal response curves (PRC) to analyze the effect of compost on community composition among treatments. Bacteria in the phylum Bacteriodetes, classes Flavobacteriia and Spingobacteriales (Fluviicola, Flavobacteriia, and Pedobacter), were two to four times more abundant in soils amended with PLC than DMC or NoC consistently among fields and years. Fungi in the phylum Ascomycota were relatively abundant, but their composition was field-specific and without treatment differences. The ecoenzyme data verify that the effects of PLC and DMC on soil communities are based on their microbial composition and not a response to the C source or nutrient content of the compost.