Today, gender violence is still a major problem. This state of affairs, accentuated by news of upturns, is so alarming that its treatment in class, whether with a view to ascertaining its origin and manifestations or to pondering possible legal solutions, is amply justified. This paper presents a teaching experience carried out in this direction. Focusing on prevention, it forms part of a subject devoted to drafting legal texts which is a pioneer in our teaching system since it transmits basic competences for writing regulation. To be more precise, the experience required each student to draft a regulation modifying certain aspects of the current national anti-gender violence measures act. To this end, the students followed the indications of the official Technical Guidelines for Regulators, applying a structure consisting of the title, the exposition, the provisions, and the final part of the law. The paper concludes with a section appraising the experience, in which we analyses the students' opinions of the experience and the results obtained. These confirm the importance of providing training in gender-related issues. Finally, some suggestions are made for further work in this direction.