In order to overcome the problems of low accuracy, low recommendation efficiency, and low user satisfaction of educational resources recommendation algorithm, this paper proposes a personalized recommendation algorithm for online educational resources based on knowledge association. Firstly, online education resources are collected according to association rules. Secondly, firefly algorithm is used to classify online education resources. Then, the vector space function is constructed to filter the classified online education resources. Finally, the correlation between knowledge points is calculated by knowledge association theory, and the knowledge with the highest user interest is selected as the target recommendation resource to realize the personalized recommendation of online education resources. The resource recommendation accuracy of this method can reach 97%, the recommendation time is less than 5.0 s, and users are more satisfied with it, indicating that its recommendation effect is good.