We used ethylene glycol as pore-forming agent to prepare porous carbon with interconnected pores derived from phenol–formaldehyde resin. The mixture of resins and glycol was by polymerization and pyrolysis monolithic material of porous carbon with interconnected mesopores and a narrow pore size range. The average pore size of the porous carbon obtained was 28.2 nm. The nitrogen adsorption isotherm for the porous carbon exhibited type IV isotherm, which corresponded to mesoporous adsorption. The method could endow porous carbon with BET surface area and pore volume about 500 m2/g and 0.607 cm3/g, respectively. The mesopores in porous carbon formed as a result of phase separation of resin-rich phase and glycol-rich phase at polymerization and remove of glycol-rich at subsequent pyrolysis.