A monolithic Ni-foam@PdNi(alloy) catalyst is tailored for coalbed methane deoxygenation via galvanically depositing Pd nanoparticles on a Ni-foam surface followed by in situ activation. Experimental and theoretical studies unanimously reveal that the in situ formed PdNi alloy contributes to high activity/selectivity, good stability and oscillation elimination.