An amperometric biosensor for hydrogen peroxide has been fabricated via layer-by-layer assembly of mesoporous carbon nanospheres and polyelectrolyte on ITO electrode surface for the adsorption of cytochrome c. The direct electrochemistry and electrocatalytic activity of cytochrome c was achieved on the multilayer-assembled electrode, indicating a good affinity and biocompatibility of mesoporous carbon nanospheres for cytochrome c.