The invention relates to a method for reducing the risk of contamination of milk and meat when milking and slaughtering ruminants carrying STEC. The invention especially relates to a method for reducing the carriage of STEC by ruminants, characterised by the administration of at least one strain of Hafnia alvei to the ruminant. The invention also relates to a composition comprising at least one strain of Hafnia alvei combined with a strain of Saccharomyces boulardii.