A new pyranoside-into-furanoside (PIF) rearrangement of selectively protected galactopyranosides, followed by controlled O(5) → O(6) benzoate migration, gives either 5-OH or 6-OH products. It has been applied for the synthesis of four oligosaccharides related to the galactomannan from Aspergillus fumigatus. The assembly of target oligosaccharides containing both (1→5) and (1→6) linkages between galactofuranosyl residues was performed by applying terminal mannoside and digalactofuranoside blocks, forming a versatile approach toward fungal and bacterial carbohydrate antigens containing both 5-O- and 6-O-substituted galactofuranoside residues.