Pt-filled porous LaNiO₃ cubes are prepared through a facile route. The characterizations reveal that large numbers of pores (9-10 nm) are distributed homogeneously in porous LaNiO₃ cubes. The Pt nanoparticles residing in the pores of porous LaNiO₃ cubes are about 5 nm in size. The investigation on the electrocatalytic activity reveals that electrocatalytic activity of the obtained Pt loaded porous LaNiO₃ nanocubes exhibit a significantly improved electrochemical active surface area (EASA) and a remarkably enhanced electrocatalytic performance toward methanol oxidation. The results are significant for improving the efficiency of Pt-based catalysts for DMFCs as well as the applications of perovskite compounds.