This study explored kindergartners' and first graders' collaborative processes to understand the nature of peer collaboration and the learning opportunities afforded by peer discourse. Data were drawn from 6 dyads who participated in a computer writing project for 2 school semesters. Children's videotaped interactions were analyzed with the focus on understanding how children's collaborative roles and patterns changed over time. Examination of video data and children's computer products revealed that (a) children's interaction patterns changed from a more independent style toward a more integrative style, as shown in their distribution of control over mouse and keyboard and in the written outcomes of their collaboration; (b) a shift in role patterns emerged across repeated instances of peer collaboration so that children began alternating the roles of leader and observer, and less competent children began carrying out more important tasks; and (c) the computer served as an object of reference for children to sustain their interaction and stay on task.