A NiMoP 2 nanowire on carbon cloth enables an impressively high electrocatalytic activity towards the HER and OER in an alkaline electrolyte.