A sustainable electrochemical approach for site-selective C–H mono and bis-chalcogenation (sulfenylation or selenylation) of indolizine frameworks is described.