A valve fastening element (1) for attaching a hydraulic valve (2) to a tractor (13). The valve fastening element (1) includes a tractor part (1a) adapted to be attached on the tractor and a valve part (1b adapted for direct assembly of the valve (2), wherein the valve (2) includes at least two screw holes (10,11,12), each adapted to receive a screw (3,4,5). The valve part (1b) of the valve fastening element (1) includes at least two slits (6,7,8), of which at least a first slit (6,8) includes an opening (6a,8a) adapted to let the head of the screw pass, and all slits include a groove (6b,7,8b,8c) that is sufficiently narrow to prevent the head of the screw (3,4,5) from passing but sufficiently wide to allow the thread of the screw (3,4,5) to pass.