Nanoporous gold was used to fabricate the electrochemical aptasensor. The enhancement of active surface was 9.4-fold by modification of nanoporous gold. A low detection limit of 0.0036 nM was obtained for Hg2+ detection. The electrochemical aptasensor could be easily regenerated. The aptasensor showed an application potential for detecting Hg2+ in drinking water.