The invention relates to the arrangement of a filtering element (100) for a device for purifying gas from the crankcase of an internal combustion engine, which includes: a filtering element (15) mounted so as to rotate about an axis and having an annular filtering medium (20); a rotor element (18) capable of being part of a rotating system, making it possible to turn the filtering element by means of notches formed on the outer surface (F) of a sleeve (19). The flanges (31, 32) of the filtering element (15) are attached to one another in an inner space defined by the medium (20), typically by snap-fitting, using at least one retaining member (44) and an anchor portion engaging with one another with an anti-rotation effect. The anchoring portion is provided with inner projections (38) forming contact surfaces (SC), preferably angular, which are inserted into the notches of the sleeve (19) when the rotor element (18) is inserted into the inner space.