Two heterocyclic derivatives derived from D-glucosamine were prepared from 1,6-anhydro-beta-D-glucopyranose in ten steps.