Synthesis of 7-azabicyclo[2.2.1]heptane and 2-oxa-4-azabicyclo[3.3.1]non-3-ene derivatives by base-promoted heterocyclization of alkyl N-(cis(trans)-3,trans(cis)-4-dibromocyclohex-1-yl)carbamates and N-(cis(trans)-3,trans(cis)-4-dibromocyclohex-1-yl)-2,2,2-trifluoroacetamides.