In the past, several assessment reports on writing repeatedly showed that elementary school students do not develop the essential writing skills to be successful in school. In this respect, prior research has pointed to the fact that cognitive and motivational challenges are at the root of the rather basic level of elementary students' writing performance. Additionally, previous research has revealed gender and achievement-level differences in elementary students' writing. In view of providing effective writing instruction for all students to overcome writing difficulties, the present study provides more indepth insight into (a) how cognitive and motivational challenges mediate and correlate with students' writing performance and (b) whether and how these relations vary for boys and girls and for writers of different achievement levels. In the present study, 1,577 fifth-and sixth-grade students completed questionnaires regarding their writing self-efficacy, writing motivation, and writing strategies. In addition, half of the students completed two writing tests, respectively focusing on the informational or narrative text genre. Based on multiple group structural equation modeling (MG-SEM), we put forward two models: a MG-SEM model for boys and girls and a MG-SEM model for low, average, and high achievers. The results underline the importance of studying writing models for different groups of students in order to gain more refined insight into the complex interplay between motivational and cognitive challenges related to students' writing performance. I n contemporary society, effective communication skills, such as reading and writing, are essential to communicate in personal and professional contexts. Being able to compose understandable and structured texts is necessary for successfully expressing oneself and is highly valued in professional, educational, and private contexts. Based on the social cognitive model of writing, Graham, Gillespie, and McKeown (2013) defined writing as a goal directed and self-sustained cognitive activity requiring the skillful management of (a) the writing environment; (b) the constraints imposed by the writing topic; (c) the intentions of the writer(s); and (d) the processes, knowledge, and skills involved in composing. (p. 4)