The information dissemination revolution triggered by algorithm embedding propagation can be divided into two halves,with recommendation algorithms leading the information distribution revolution in the first half and generative algorithms leading the information production revolution in the second half.The algorithm revolution has brought convenience to human information production and life,but it has also posed challenges to ideological construction:the global gap in algorithm technology development has led to an imbalance in the development of ideological influence;The coupling of algorithms with social power carries the risk of group ideological consensus differentiation and dissolution;Algorithms invade human subjectivity and shake the foundation of ideological security.In this regard,efforts should be made to bridge the gap in algorithm technology development,innovate the mainstream ideological discourse dissemination system,regulate algorithm public risks and consolidate human subjectivity.We should grasp the initiative and advantages of ideological construction under the background of algorithm revolution and ensure the overall stability of ideological security in China.