In the context of our work, we want to point out how religion has multiple social functions and as such, under certain circumstances, can serve as a fertile soil for distance and closeness. The aim of this study was to explore the impact of religious self-identification and church attendance on social distance toward Muslims. We applied a questionnaire to students of the University of Split, the city which is geographically in vicinity of the complex of ethnic and religious context of Bosnia and Herzegovina. The results showed that religious self-identification and church attendance significantly influence the level of social distance toward Muslims. Believers showed a significantly higher level of social distance, in comparison to respondents who belong but not believe, and others. Respondents who attend church daily or once a week have also a higher level of social distance in comparison to respondents who attend church monthly or rarely and those who never attend church. We have tried to explain the reasons for such research findings, relying on various national, cultural, religious and psychological factors that have been present in the last twenty years after the war in this region.