Antibacterial compound selected from lactylate according to formula 1, Formula 1 R2-COO - [- CH (CH3) -COO] n -R1 or a salt of Na, K, Ca, Mg, Fe (II), Zn, NH4, or of Cu (II), a glycosylate of formula 2, Formula 2: R2-COO - [- CH2-COO] n -R1 or a Na, K, Ca, Mg, Fe (II), Zn, NH4, or salt of Cu (II) of a lactate ester of formula 3, Formula 3: HO-CH (CH3) -COO-R2 and / or an ester of glycolic acid of formula 4, Formula 4: HO-CH2-COO-R2 where the above formulas R1 are selected from H, n represents an integer with a value of 1-10, and R2 represents a C1-C35 alkyl or alkenyl chain that may be branched or unbranched for use in the prevention or treatment of intestinal infections caused by gram-positive bacteria in animals.Compuesto antibacteriano seleccionado de lactilato conforme a la fórmula 1, Fórmula 1 R2-COO-[-CH(CH3)-COO]n -R1 o una sal de Na, K, Ca, Mg, Fe(II), Zn, NH4, o de Cu(II), un glicosilato de fórmula 2, Fórmula 2: R2-COO-[-CH2-COO]n -R1 o un Na, K, Ca, Mg, Fe(II), Zn, NH4, o sal de de Cu(II) de un éster de lactato de fórmula 3, Fórmula 3: HO-CH(CH3)-COO-R2 y/o un éster del ácido glicólico de fórmula 4, Fórmula 4: HO-CH2-COO-R2 donde las fórmulas anteriores R1 se seleccionan de H, n representa un número entero con un valor de 1-10, y R2 representa un alquilo o cadena de alquenilo C1-C35 que puede estar ramificada o no ramificada para usar en la prevención o tratamiento de infecciones intestinales provocadas por bacterias grampositivas en animales.