The novel and facile method for the preparation of monolithic LiFePO4/carbon composites with well-defined macropores have been developed. The precursor macroporous gels consisting of inorganic networks as well as organic polymers were fabricated by the epoxide-mediated sol–gel method accompanied by phase separation. The inorganic-organic hybrid gels were calcined under inert atmosphere resulting in LiFePO4/carbon monoliths. The influence of the starting compositions on the gel morphologies has been investigated and the constituents of the gel network were discussed. The reaction mechanism of the crystallization of LiFePO4 from the green bodies during the calcination has also been investigated by thermal analysis, X-ray diffraction, and Raman scattering. In addition, electrochemical properties of the resultant LiFePO4/carbon composites were examined by the charge-discharge test.