Abstract Political security makes the foundation of national security. With the advent of the era of artificial intelligence, intelligent technologies such as big data, cloud computing, and machine learning continue infiltrating into fields of politics, and increasingly embedding and integrating national sovereignty, social order and ruling environment. In the development of these intelligent technologies, a lot of problems are witnessed, such as uncontrolled application scenarios or the lack of preventive and control measures, which even affect the political security of modern political parties. Some Western political parties, one after another, have elevated the intelligence technology to the level of national strategy, using artificial intelligence technology to mobilize and govern within the political parties, as well as propagate. Artificial intelligence is also applied in social governance and regime consolidation, thus effectively safeguarded the political security. For the Communist Party of China, its supposed to accurately grasp the new trend of the development of political parties in the era of artificial intelligence, and analyze the main strategies of Western political parties to maintain political security in the era of artificial intelligence, which could provide important enlightenment for the maintenance of political security of the Party in terms of top level design, governance practice and international cooperation.