Homophobia, biphobia, transphobia and gender violence in sexual-affective relationships appear frequently in the bases of bullying. The educational centres are more conscious about this reality and look for actions to prevent and eradicate this kind of violence. At the same time, international research states that bullying prevention needs a re-organization of the educational centre incorporating the work of all the educational community (students, family, teachers, etc.). In this article we gather data on bullying and its connection to gender, part of the Spanish legislation related to this problem is analysed and we conducted an international literature review. The main contribution of this article is to present orientations and actions that prevent and contribute to eradicate gender violence and violence for homophobia, biphobia and transphobia through the school organization and school management. Some of these actions are inclusive education, democratization of the centres, making visible and not trivializing violence, and mainly the community participation and active positioning of all the community against bullying and in favour of the victims.