An interesting and potential property of extracellular polymeric substances (EPS) is the hydrogel formation with calcium ions. Aiming at understanding the significant difference in the hydrogel formed between EPS from flocculent and granular sludge, a targeted investigation of the lipopolysaccharides (LPS), one of the important EPS components, was performed. LPS was isolated from the EPS of flocculent and granular sludge, and both the glycan and the lipid A parts of LPS were characterized and compared. The morphology of LPS-calcium (LPS-Ca) aggregates were visualized by the polymyxin B-based fluorescent probe. The LPS constituted about 25 % and 15 % of the EPS from flocculent and granular sludge, respectively. The flocculent sludge LPS showed a lower amount of glycans, shorter glycan chain length, lower molecular weight, and higher possibility of containing unsaturated lipids than the granular sludge EPS. The flocculent sludge LPS-Ca aggregates demonstrated invert structures with the water phase in between, contributing to the fluid-like property of the respect EPS-Ca. In contrast, with the remarkably different chemical structure, LPS-Ca aggregates from granular sludge displayed bilaminar multilayered morphology, contributing to the solid, self-standing hydrogel of EPS-Ca.