Nano-Ru/porous carbon composites were prepared by Ru/aerogels which were made through a reaction of resorcinol, formaldehyde and RuCl3·3H2O.