Co/C–N was prepared by simple pyrolysis of MOFs.
Nitroarenes are converted to anilines with other reducing groups remaining intact.
Co-N centers present in the catalyst lead to the unique chemoselectivity.
The reaction showed a first-order dependence on H2 pressure.