The invention relates to a method for disinfecting soils or other agricultural growing media, characterised by comprising the following steps: obtaining a soil or other agricultural growing medium at their field capacity; treating the soil or medium at the field capacity of the previous step with ozonated water, wherein the ozonated water is prepared in situ with ozone-production equipment connected to the water supply; allowing a period of time to pass after the treatment with ozone; and inoculating the disinfected soil or agricultural medium with at least one species of beneficial microorganism.