Enzymatic macrocyclization of ribosomally synthesized and posttranslational modified peptides via C-S and C-C bond formation.