The hydrogen evolution reaction (HER) and the oxygen evolution reaction (OER) play key roles in the conversion of energy derived from renewable energy sources into chemical energy. Efficient, robust, and inexpensive electrocatalysts are necessary for driving these reactions at high rates at low overpotentials and minimize energetic losses. Recently, electrocatalysts derived from hybrid metal phosphonate compounds have shown high activity for the HER or OER. We review here the utilization of metal phosphonate coordination networks and metal-organic frameworks as precursors/templates for transition-metal phosphides, phosphates, or oxyhydroxides generated in situ in alkaline solutions, and their electrocatalytic performance in HER or OER.