PurposeThe purposes of this research were to review, analyze, synthesize and define the principles, indicators and required design elements of crime prevention through environmental design (CPTED) and the potential role of the design of the courtyards in preventing campus violence; to examine the relationships between built environment design and campus violence inside Al al-Bayt University (AABU), Jordan; and to examine to what extent the design of the open public spaces and courtyards inside AABU meet the design principles of the CPTED.Design/methodology/approachThis research used descriptive-analytical approach, semi-structured interviews, archival records and videos to collect the location-based data of violent events and incidents that occurred on the campus of AABU (the locations of students' fights). Additionally, this research used AABU images; plans, spatial analysis, site visits and direct observations to analyze and assess the courtyards’ design and to examine to what extent the design of courtyards and open public spaces in AABU achieve the CPTED indicators, and the availability and the quality of the required design elements of CPTED and their role in violence prevention.FindingsThis research found that environmental-based design plays a major role in reducing crime opportunities and promote positive social behavior. This research found that the indicators to achieve the CPTED principles in all courtyard design inside AABU are very low and all the courtyards’ designs are not complied and conformed to the CPTED principles, and as a result, the design of the courtyards encourages and may facilitate violence in the university campus. It has been found that the availability and the quality of the required CPTED design elements are very low in all courtyards. Therefore, the existing design elements in all courtyards in AABU are not preventing the university violence. The correlation result revealed that there is significant relationship and strong/very strong negative linear association between the numbers of the students' fights and the applying of CPTED principles, indicators and required design elements (r = −0.85).Research limitations/implicationsThe data collected from AABU campus only and a larger study is certainly required to underpin these findings. Therefore, future research is needed to replicate and duplicate this research in order to expand the results.Practical implicationsThis research has implications for designing/redesigning the open public space and courtyards inside universities. This research recommended that redesigning all courtyards and applying the principles of CPTED are necessary to prevent campus violence. Redesigning includes adding landscaping elements, fountains, water features, pedestrian furniture, portrait, setting areas, new modern sculptures, shaded areas, lighting, memorial places, digital screens and cameras. Moreover, this research recommended that the university should pay more attention to continuous control, repair and maintenance to all courtyards after redesigning them. Finally, this research introduced a design proposal for one of the courtyards to apply the CPTED principles that promote positive behavior and prevent campus violence.Originality/valueIn the last few years in Jordan, some of the public and private Jordanian universities suffered from a newly emerging negative phenomenon, which is violence between students inside the campus. Many researchers and governmental institutions have stressed the urgency to explore the social, cultural, behavioral and environmental strategies that may effectively prevent campus violence. Additionally, little attention has been paid to the role of built environmental design in preventing campus violence. Moreover, no research assesses the applying of the CPTED principles and their indicators in courtyards’ design in Jordanian campuses.