This study explores the complexity of emotionally engaging schoolwork among students by analysing the interrelation between the affective and the social dimensions of emotional engagement. The data were collected from 78 Finnish sixth-grade (aged 12-13 years) and 89 eighth-grade (aged 14-15 years) students using picture tasks. The results show that the main elements of the affective dimension are the valuing of schoolwork and the enjoyment of learning, and the main element of the social dimension is a sense of belonging in terms of social cohesion and the support experienced by students. Furthermore, the results suggest that emotional engagement has internal dynamics: the affective and social dimension influence each other, regulating the students' sense of emotional engagement. Consequently, neither of the dimensions alone result in strong, balanced emotional engagement. In addition, the results show that the relation between the affective and social dimension was more unbalanced in the peer interaction than in the teacher-student interaction at both grade levels. This suggests that tensions in the peer interaction at school make for a more complicated context in terms of emotional engagement.