The invention relates to the use of a bacterial mixture for the prevention and improvement of the state of ungulates suffering from pathologies involving a parasitic or bacterial infection of the foot, said composition comprising: at least one strain of bacteria of the genus Bacillus, and at least one lactic acid bacterium.