A sustainable method efficiently synthesizes β-keto spirolactones using green solvents under electrochemical conditions.