But-2-yne-1,4-diol (1) was electrochemically oxidized on glassy carbon anode in a dry THF solution containing a quaternary ammonium salt, in an undivided cell giving di(1,3-dioxepan-2-yl)ethyne (5) in 80% yield. The electrochemically generated dialdehyde intermediate is assumedly acetalized in a fast reaction with THF. Dimerized product 6 was isolated in 85% yield after electrooxidation of diol 1 in dry 1,2-dimethoxyethane under similar conditions.