In 1970s it was observed that the efficiency of Raman scattering for molecules placed in the optical nanoresonators may increase even more than seven orders of magnitude. Later, large increase of the efficiency of other optical processes (e.g., infrared absorption, fluorescence, or second harmonic generation) has been also reported for molecules placed in nanoresonators. Therefore, fabrication of electromagnetic nanoresonators and their applications for the construction of various analytical sensors are studied in many laboratories in the world. The first practically used electromagnetic nanoresonators have been formed electrochemically, and, although other methods have been developed since then, various types of such nanostructures are still being formed using different electrochemical methods.In this review different approaches used for the electrochemical formation of electromagnetic nanoresonators are discussed. Methods of the formation of single active-site nanoresonators, and of nanostructured surfaces containing a large number of places where the optical energy is concentrated, are presented. Fabrication of composite nanoresonators composed of at least two different materials is also briefly described.