In a truly democratic society, there should be no place for any kind of discrimination or violence. Among the basic tools for eradicating discrimination and violence against women, education has a crucial role to play. Education about gender should be considered at all levels, in all year groups and across the curriculum, so as to improve education about this subject. Although these matters are increasingly addressed, at university level, including at postgraduate level, they are often forgotten. The purpose of this study is to break down the level of knowledge of gender-based violence and/or sexual stalking, the sources of information most widely used for developing this knowledge, and beliefs about situations of risk in relationships among a sample of 268 Science and Social Science students at the University of Córdoba (Spain). The analysis was descriptive, comparative and correlative. Means and standard deviations were analyzed, and correlations were used to establish possible relations among the variables. Cluster analysis was used to distribute the sample with respect to knowledge of violence and Student’s t-test was used to identify differences between groups. The chi-squared test was used to find the association between variables such as situations of violence and places of residence. The results show that, although the experience of gender-based violence is among the least common sources of violence, there is evidence that these situations do exist, and the risk of violent acts and/or stalking is greater when couples break up. The perception of risk is higher when students have a greater knowledge of gender-based violence or sexual harassment and this perception is higher in women. As expected, greater knowledge is also associated with experience of this type of situation; however, place of residence was not linked to greater or lesser knowledge. Training in gender is considered essential and necessary in the university environment.