Electronic regulation of platinum species on metal nitrides realizes superior mass activity for hydrogen production.