Ultrathin C3N4 nanosheets serve as efficient cocatalysts for photoelectrochemical water splitting. The H2 generation capability is nearly 12 times with respect to the pristine BiVO4 photoanodes. Ultrathin C3N4 could effectively transfer and store holes for water oxidation. This work may provide an effective approach for enhancing photoelectrochemical properties.