A two-dimensional h-BN/C2N heterostructure as a promising metal-free photocatalyst for overall water-splitting.