Based on the enrichment potential of living plants for nanoparticles, this paper develops a new strategy to utilize Murray's law in plants to remove various shapes of gold nanoparticles and, in situ, convert them into Murray porous carbon. The inherent Murray network serves as an optimized hierarchical design and ensures the mechanical stability of the material, and Murray's law is employed to achieve uniform dispersion of nanoparticles in vivo, facilitating the preparation of metal nanoparticle-supported carbon materials.