An optical modulator based on the electrocapillarity effect has been built and demonstrated. Optically, the device consists of a plane, variable radius circular mirror formed by the contact of mercury and a glass sheet. The mercury is also in contact with an aqueous electrolyte, and the diameter of the mirror is switched between two stable values by applying voltage pulses to the mercury/electrolyte interface. Switching times of 3 ms have been observed.