Keeping users engaged is the key to the success of online communities. There are many driving factors for users to participate and stay in online communities, but the impact of user experience on user engagement has been ignored. This paper introduces the reward type of online community as a moderating variable and constructs a moderated test model to study the effect of online community user experience on user engagement. The results show that functional experience, hedonic experience and social experience all have a significant positive impact on user engagement. The effect of online community user experience on engagement is moderated by the type of reward. This paper provides a new perspective and direction for the study of user engagement in online communities, and also provides theoretical support and policy suggestions for enterprises and online community managers to improve user engagement.