In this work, a novel and enhanced electrochemical sensor based on Na+doped g-C3N4 was constructed for the detection of phenol. First, the g-C3N4 was formed through polymerizing melamine under 520 degrees C. And then the Na+-doped g-C3N4 was fabricated by a simple wet chemical method. The electrochemical sensor was constructed by modifying the carbon paper with the resulting Na+-doped g-C3N4. The morphology, chemical compositions and structure of Na+-doped g-C3N4 were characterized by scanning electron microscopy, transmission electronic microscopy, energy-dispersive X-ray detector and X-ray diffraction. The Na+-doped g-C3N4 electrode was used for the cyclic voltammetry and amperometric response detection of phenol in a 0.1 M phosphate buffer (pH 9.0). Under the optimal conditions, the prepared sensor displayed good performance for the electrochemical detection of phenol with a wide linear range of 1-110 mu M, as well as low detection limit of 0.23 mu M.