Continuous cropping obstacle of cucumber (Cucumis sativus L.) under facility cultivation is more prevalent in China. This is associated with imbalance in soil microbial and ecological environment in long-term monocultures. It was postulated that intercropping with green garlic would relieve the continuous cropping obstacle of cucumber by altering the soil micro-ecology status. A pot-based experiment was conducted to investigate the green garlic-cucumber intercropping and cucumber monocropping systems. The results showed that the cucumber shoot biomass was improved by intercropping with green garlic. However, the population of soil bacteria and actinomycetes increased, while the fungal population decreased. The fatty acid methyl ester (FAME) profiles indicated that soil contained more fungal FAME biomarkers (18:1ω9c, 18:2ω6, 9) and higher fungal:bacterial ratio in the monoculture system, whereas clustering of more bacterial FAME biomarkers (cy17:0, cy19:0, 16:1ω7c10, Me16:0, 10Me17:0, 10Me18:0) was observed under intercropping conditions. Moreover, significantly (P<0.05) higher soil invertase and alkaline phosphatase activities, organic matter, and available N, P and K contents were observed under intercropping systems. These were high in both bulk and rhizosphere soils in the intercropping system when compared to monocropping system. These findings suggest that intercropping with green garlic can alleviate continuous cropping obstacle of cucumber by improving the diverse composition of soil microbial community, enzyme activities, and nutrient availability.