Zwitterionic polysaccharides (ZPSs) present on the surface of a common gut commensal Bacteroides fragilis are endowed with unique immunological properties as they can directly bind to T-cells in the absence of protein conjugation. ZPSs are therefore considered to be potential antigens for the development of totally carbohydrate-based vaccines. Herein, we disclose the first total synthesis of a highly branched phosphorylated zwitterionic capsular polysaccharide repeating unit of Bacteroides fragilis. The hexasaccharide repeating unit bearing six different monosaccharides comprises three 1,2-cis-glycosidic linkages, a challenging 1,2-trans linkage in D-QuipNAc-β-(1→4)-D-Gal motif, and a 2-aminoethyl phosphonate appendage. The synthesis of target ZPS was accomplished utilizing an expeditious, highly stereoselective and convergent (1 + 2 + 2 + 1) one-pot glycosylation strategy. The striking features include efficient synthesis of rare deoxy amino sugars D- and L-quinovosamine, stereoselective installation of three 1,2-cis glycosidic linkages, glycosylation of D-quinovosamine donor with a sterically crowded, poorly reactive 4-OH galactose moiety, as well as late stage phosphorylation.