Biosensor for hydrogen peroxide was developed by immobilizing cytochrome c in the macroporous ordered silica foam (MOSF) through the electrostatic interaction. The achievement of the direct electron transfer between cytochrome c and electrode surface indicated that the MOSF modified electrode displayed good affinity and biocompatibility for cytochrome c.