In artificial ecosystems, mixed planting of gramineous and leguminous plants can have obvious advantages and is very common. Due to their improved growth performances and stress tolerance, endophyte-infected grasses are considered to be ideal plant species for grasslands. However, endophytic fungi can inhibit the growth of neighboring nonhost leguminous plants. In this study, we chose endophyte-infected and endophyte-free tall fescue (Lolium arundinaceum Darbyshire ex. Schreb.) and clover (Trifolium repens) as the experimental materials to explore whether arbuscular mycorrhizal fungi and rhizobium can alleviate the inhibitory effect of endophyte infection on clover. The results showed that endophytic fungi significantly reduced clover biomass. Arbuscular mycorrhizal fungi inoculation significantly increased the biomass of clover in both endophyte-infected tall fescue/clover and endophyte-free tall fescue/clover systems but the beneficial contribution of arbuscular mycorrhizal fungi was more obvious in the endophyte-infected tall fescue/clover system. Rhizobia inoculation could alleviate the detrimental effect of tall fescue on the growth of clover but did not alleviate the detrimental effect of endophyte infection on the growth of clover.