Gold nanoparticle-carbon foam composites with highly-dispersed gold nanoparticles confined in the cavities were prepared. The gold nanoparticles are effectively separated from each other by permeable carbon shells, which show high temperature stability and were fully accessible to the substrate.