Graphitic carbon nitride (g-C3N4) is a two-dimensional conjugated polymer that has attracted the interest of researchers and industrial communities owing to its outstanding analytical merits such as low-cost synthesis, high stability, unique electronic properties, catalytic ability, high quantum yield, nontoxicity, metal-free, low bandgap energy, and electron-rich properties. Notably, graphitic carbon nitride (g-C3N4) is the most stable allotrope of carbon nitrides. It has been explored in various analytical fields due to its excellent biocompatibility properties, including ease of surface functionalization and hydrogen-bonding. Graphitic carbon nitride (g-C3N4) acts as a nanomediator and serves as an immobilization layer to detect various biomolecules. Numerous reports have been presented in the literature on applying graphitic carbon nitride (g-C3N4) for the construction of electrochemical sensors and biosensors. Different electrochemical techniques such as cyclic voltammetry, electrochemiluminescence, electrochemical impedance spectroscopy, square wave anodic stripping voltammetry, and amperometry techniques have been extensively used for the detection of biologic molecules and heavy metals, with high sensitivity and good selectivity. For this reason, the leading drive of this review is to stress the importance of employing graphitic carbon nitride (g-C3N4) for the fabrication of electrochemical sensors and biosensors.