This study aimed to establish an explanatory model for university students' deviated behaviors and investigate the impact of attachment, self-control, pleasure leisure activities, and deviant peer on deviated behaviors. The research subjects were freshmen in 16 universities. A total of 800 questionnaires were distributed, and 536 copies were collected. The collected data were later analyzed with LISREL 8.52. The fitness of the model was good (χ^2/df=320.59/155, RMSEA=0.046). The analysis results showed that (1) attachment has a significant and negative effect on deviant peer, and attachment will create an indirect and positive effect on deviated behaviors through deviant peer; (2) self-control has a significant and positive effect on pleasure leisure activities, deviant peer, and deviated behaviors; and (3) self-control will create an indirect and positive effect on deviated behaviors through pleasure leisure activities and deviant peer. For university students, if their attachment to the family, school, and classmates is low, they tend to have more deviant peers. With more deviant peers, they are more likely to have more deviated behaviors. If they have lower self control, they may have more deviant peers, participate in more pleasure leisure activities, and are more likely to have deviated behaviors. Thus, if the attachment to family, school, and classmates, the cultivation of self-control abilities can be paid attention to, and pleasure leisure activities and friends can be carefully selected, the deviated behaviors of university students will be reduced.