To compensate for the seasonal imbalance between livestock and forage yield in the cold region of Northeast China, alfalfa (Medicago sativa L.) continuous cropping has been widely employed in animal husbandry. However, the effects of continuous cropping of alfalfa on soil properties, including physical, chemical and biological properties, are poorly understood. In this study, we investigated the soil properties and fungal community composition of alfalfa fields under continuous cropping for different time periods (i.e., 1, 2, 6, 9, 12, 13 and 35 years). The results showed that soil moisture, total C, total N, NO 3-N and available K content decreased at less than 10 years of continuous cropping and then increased at more than 10 years of continuous cropping, but soil total P and available P content showed the opposite tendency. The soil fungal community composition determined using Illumina Miseq sequencing showed that continuous cropping increased the fungal alpha diversity and changed the fungal community structure. The relative abundances of Guehomyces and Chaetomium decreased, but the relative abundances of Phaeomycocentrospora and Paecilomyces increased with continuous cropping time. In addition, continuous cropping of alfalfa increased the relative abundances of some plant pathogens, such as Haematonectria haematococca and Cyphellophora sp. Soil total P and available P content were important soil factors affecting the soil fungal community diversity, fungal community structure and the relative abundances of specific fungi in this alfalfa continuous cropping system.