A new synthesis of fused heterocyclic and carbocyclic compounds via the reaction of the vinylphosphonate with imide and ketone enolate anions.