The invention discloses a trench cultivation technique for flammulina velutipes, comprising the steps of building of a trench, preparation of cultivation materials, bagging, inoculation for cultivation, bud inducement for fruiting, fruiting management, tide change management, pest control, harvesting and the like. The trench has the characteristics of being warm in winter and cool in summer, and being capable of realizing thermal insulation and moisture preservation; by adopting trench cultivation, the influences of low temperature, dryness, windiness and other unfavorable climatic factors can be avoided, and simultaneously, the construction cost of the trench is low, and the trench can be used for a long time, thereby being suitable for large-scale popularization. According to the invention, Chinese herbal medicine liquor is adopted to disinfect trench and inoculum, and botanical pesticide is sprayed to prevent insect disease, thereby greatly reducing pest and disease damage of flammulina velutipes, purifying the growth environment of flammulina velutipes, reducing use of chemical pesticide, and protecting the ecological environment. The flammulina velutipes cultivated by the invention is good in taste and safe and pollution-free.