Microalgal-based biofuel production is of great significance in alleviating energy crisis and achieving carbon neutrality. However, the excessive costs and high solvent consumption in lipids extraction from microalgal obstruct the widespread application of biodiesel in practice. Reported herein is the construction of facile strategy for lipids extraction via electrocatalytic pretreatment and a subsequent two-phase partitioning method. Electrocatalytic pretreatment method adopts the solar as power source and avoids the drying of microalgal biomass, in favor of carbon neutrality requirement. During this process, eco-friendly electrode with high specific surface area could contribute to the sufficient generation of reactive chlorine species (RCS), facilitating the outflows of intracellular lipid. As a result, assisted with two-phase partitioning method, a satisfied performance of lipid recovery (86.72 %) was obtained. Notably, compared with traditional solvent method, two-phase partitioning method greatly reduced the dosage of organic solvent, which is an economical or environmental technique.