The aminodihydroisocoumarin moiety of AI-77-B, a gastroprotective substance isolated from Bacillus pumilus AI-77, has been prepared from a convenient chiral synthon of L-erythrose by combination of chiral triflate technology and regioselective aromatic carboxylation.