The animal lectin galectin-3 interacts with bacterial lipopolysaccharides via two independent sites.