Target-selective photodegradation of 3-deoxy-D-manno-2-octulopyranosonic acid (KDO) was achieved without additives and under neutral conditions using a designed anthraquinone-boronic acid hybrid and long wavelength UV light irradiation. The hybrid can photodegrade lipopolysaccharides (LPS) and inhibit macrophage activation induced by LPS.