The synthesis and direct conversion of N-alkoxy beta-lactams to the carbapenam ring system is described. This novel cyclization apparently proceeds by initial carbene-mediated ylide formation with concomitant rearrangement. The title reaction is applied to the construction of the methyl ester of the bicyclic beta-lactam precursor of PS-5.