A device for fastening a marker device to a bone, comprising a fixing element including a mounting for the marker device, comprising a spring designed to contact an abutment for exerting a force between the abutment and the fixing element in the direction of the bone.