Antimicrobial proteins and peptides (AMPs) are essential effectors of innate immunity, acting as a first line of defense against bacterial infections. Many AMPs exhibit high affinity for cell wall structures such as lipopolysaccharide (LPS), a potent endotoxin able to induce sepsis. Hence, understanding how AMPs can interact with and neutralize LPS endotoxin is of special relevance for human health. Eosinophil cationic protein (ECP) is an eosinophil secreted protein with high activity against both Gram-negative and Gram-positive bacteria. ECP has a remarkable affinity for LPS and a distinctive agglutinating activity. By using a battery of LPS-truncated E. coli mutant strains, we demonstrate that the polysaccharide moiety of LPS is essential for ECP-mediated bacterial agglutination, thereby modulating its antimicrobial action. The mechanism of action of ECP at the bacterial surface is drastically affected by the LPS structure and in particular by its polysaccharide moiety. We have also analyzed an N-terminal fragment that retains the whole protein activity and displays similar cell agglutination behavior. Conversely, a fragment with further minimization of the antimicrobial domain, though retaining the antimicrobial capacity, significantly loses its agglutinating activity, exhibiting a different mechanism of action which is not dependent on the LPS composition. The results highlight the correlation between the protein's antimicrobial activity and its ability to interact with the LPS outer layer and promote bacterial agglutination.