This invention relates to novel macrocyclic lactams intermediates useful for the preparation of diazonamide analogs. This invention also relates to a novel electrochemical oxidative cyclization for the preparation of such macrocyclic lactams, and their further elucidation to provide diazonamide analogs.