Xinjiang is the largest arid and saline agricultural region in China. The common irrigation methods in this area are traditional flood irrigation and drip irrigation. In this study, we investigated the effects of these two irrigation methods on the fungal diversity, community structures, and functions in alfalfa rhizosphere soil as well as the associated environmental factors in northern Tianshan Mountain (Xinjiang, China). Soil enzyme activities (urease and neutral phosphatase) were significantly higher in the drip-irrigated alfalfa rhizosphere soil than in the flood-irrigated alfalfa rhizosphere soil, whereas the fungal alpha diversity in the drip-irrigated alfalfa rhizosphere soil was significantly lower than that in the flood-irrigated alfalfa rhizosphere soil. Six dominant fungal phyla were identified (>0.1%), with Ascomycota being the most abundant in all soils, followed by Basidiomycota (5.47%), Mortierellomycota (1.07%), Glomeromycota (0.55%), Rozellomycota (0.27%), and Chytridiomycota (0.14%). Ascomycota and Glomeromycota species were significantly less abundant in drip-irrigated alfalfa rhizosphere soil than in flood-irrigated alfalfa rhizosphere soil. A LEFSe analysis identified Cladosporiaceae (20.8%) species as the most abundant marker fungi in drip-irrigated alfalfa rhizosphere soil. Of the 13 fungal functional groups identified on the basis of the functional annotation using the FUNGuild database, Ectomycorrhizal (22.29%) was the primary functional group. Compared with flood irrigation, drip irrigation significantly decreased the relative abundance of Ectomycorrhizal and Arbuscular_Mycorrhizal, while increasing the relative abundance of Plant_Pathogen, although not significantly (P = 0.19). Available potassium was revealed to be the main environmental factor influencing soil enzyme activities, fungal alpha diversity, fungal community structures, and fungal functions in response to the different irrigation methods. In conclusion, drip irrigation may be more appropriate than flood irrigation in the Tianshan dryland agricultural area for enhancing soil enzyme activities, but it may also increase the abundance of plant pathogenic fungi in the soil.