The present study examines the direct and indirect relationships between classroom environment (CE), L2 (second/foreign language) learner emotions (i.e. enjoyment, anxiety and boredom), and their willingness to communicate (WTC) in classes for English as a foreign language (EFL). Participants were 2,268 university students in China. Pearson correlation analyses showed significant correlations between CE, L2 emotions, and WTC, with effect sizes ranging from small to large. In addition, the three L2 emotions were found to mediate the relationship between CE and WTC in parallel, with enjoyment having the largest mediating effect, followed by anxiety and boredom. The findings offer insights into how to improve students’ WTC in an L2.