The carbon peak and carbon neutral target has been elevated to a national strategy, and relevant timetables, road maps and policy measures are being formulated and put into practice. As the world's largest energy consumer and carbon dioxide emitter, the proposal of the carbon neutrality target will trigger extensive and profound systemic changes in the energy field. It is urgent to explore new approaches for China's energy security and structural optimization oriented by the "double carbon" goal. Based on a horizontal comparison of carbon dioxide emissions and the development of energy technology in the United States, the European Union and China, as well as a vertical analysis of the characteristics of carbon emissions and energy consumption in China in recent years, the short-term strategy and long-term outlook for China's energy structure optimization were presented in this paper. On the basis of learning from the advanced energy science and technology policies of developed countries, it was suggested that China needed to base itself on its own national conditions, comprehensively consider its own energy resource endowment and the essential attributes of energy, use coal in a clean and low-carbon manner, utilize oil efficiently as a resource, supply natural gas in a diversified manner, and develop cleanly energy and continue to promote energy conservation and emission reduction in high energy-consuming industries. The prerequisite for carbon neutrality in the energy sector was to improve relevant policies and mechanisms, and took this as a guide to build a clean, low carbon, diversified and symbiotic energy system, continue to promote the collaborative innovation of "three-carbon" technology and energy digital technology, and construct an integrated intelligent energy system. Due to the complex evolution of the international situation, China's energy development should take into account the three goals of achieving the "dual carbon" goal, optimizing the energy structure and energy security. It was necessary for China to establish a dynamic and diversified energy strategic reserve system and energy cooperation mechanism to ensure energy security under open conditions.