Porous organic polymers enable a novel approach to incorporate Xantphos into a solid macroligand. Immobilizing a ruthenium complex on the Xantphos network results in an excellent catalyst for the hydrogenation of CO2 to formic acid. Recycling experiments indicate a minor partial degradation of the heterogenous catalyst after a certain induction period, which is referred to its structural changes.