The invention relates to the technical field of harmless treatment of polluted soil microorganisms. In particular, it relates to a microbial harmless treatment method for oil and gas field drilling waste mud. Aspergillus oryzae, Bacillus subtilis, Pseudomonas fluorescens, Acinetobacter calcoacetate and Rhodococcus erythrococcus are respectively cultured in test tubes, shake flasks, Seed tank culture, fermenter culture, and sterilized solid medium culture become solid bacterial agents for production, which are mixed in proportion to solid mixed bacterial agents for production, and the bacterial agents are connected to oil and gas fields to discharge waste mud during drilling, and after uniform stirring, Control the cultivation temperature and time of the microbial harmless treatment of mud, and the above treatment process can be carried out in the abandoned mud pool for drilling in oil and gas fields. Through the growth, reproduction, degradation and transformation of microorganisms in waste mud, the mud can be detoxified, degummed, desalinated and dehydrated, so that the polluted soil environment can be biorestored and the ecological environment can be restored.