<p>An unconventional fabrication technique of nanoelectrode was developed using atomic force microscopy (AFM) and hydrogel. Until now, the precise control of electroactive area down to a few nm<sup>2</sup> has always been an obstacle, which limits the wide application of nanoelectrodes. Here, the nanometer-sized contact between the boron-doped diamond (BDD) as conductive AFM tip and the agarose hydrogel as solid electrolyte was well governed by the feedback amplitude of oscillation in the non-contact mode of AFM. Consequently, this low-cost and feasible approach gives rise to new possibilities for the fabrication of nanoelectrodes. The electroactive area controlled by the set point of AFM was investigated by cyclic voltammetry (CV) of the ferrocenmethanol (FcMeOH) combined with quasi-solid agarose hydrogel as an electrolyte. Single copper (Cu) nanoparticle was deposited at the apex of the AFM tip using this platform whose electrocatalytic activity for nitrate reduction was then investigated by CV and Field Emission-Scanning Electron Microscopy (FE-SEM), respectively.</p>