A ratchet wrench comprising: a driving device including first and second sides spaced along a rotating axis (L), with a compartment extending from the first side through the second side , with the driving device further including a drive member received in the compartment and rotatable about the rotating axis (L), with the drive member including an end, with the end of the drive member adapted to drive a tool, with a ledge formed on an inner periphery of an end of the compartment at the second side , with the ledge including an abutment portion ; a pressing rod extending into the drive member via the end of the compartment at the second side , with the pressing rod movable relative to the drive member along the rotating axis (L) to control engagement with or detachment from the tool; and a dustproof ring (40; 40a) mounted between the ledge and the pressing rod , with the dustproof ring (40; 40a) including an outer side (401; 401a) and an inner side (402; 402a) surrounded by the outer side (401; 401a) and spaced from the outer side (401; 401a) in a radial direction perpendicular to the rotating axis (L), with the outer side (401; 401a) pressing against the abutment portion of the ledge , with the inner side (402; 402a) pressing against the pressing rod , with the outer side (401; 401a) including an outer periphery (41; 41a) pressing against the abutment portion of the ledge , with the inner side (402; 402a) including an inner periphery (42; 42a) spaced from the outer periphery (41; 41a) in the radial direction perpendicular to the rotating axis (L), with the inner periphery (42; 42a) including a lip (43; 43a) having an outer surface (432; 432a) pressing against the pressing rod . a driving device including first and second sides spaced along a rotating axis (L), with a compartment extending from the first side through the second side , with the driving device further including a drive member received in the compartment and rotatable about the rotating axis (L), with the drive member including an end, with the end of the drive member adapted to drive a tool, with a ledge formed on an inner periphery of an end of the compartment at the second side , with the ledge including an abutment portion ; a pressing rod extending into the drive member via the end of the compartment at the second side , with the pressing rod movable relative to the drive member along the rotating axis (L) to control engagement with or detachment from the tool; and a dustproof ring (40; 40a) mounted between the ledge and the pressing rod , with the dustproof ring (40; 40a) including an outer side (401; 401a) and an inner side (402; 402a) surrounded by the outer side (401; 401a) and spaced from the outer side (401; 401a) in a radial direction perpendicular to the rotating axis (L), with the outer side (401; 401a) pressing against the abutment portion of the ledge , with the inner side (402; 402a) pressing against the pressing rod , with the outer side (401; 401a) including an outer periphery (41; 41a) pressing against the abutment portion of the ledge , with the inner side (402; 402a) including an inner periphery (42; 42a) spaced from the outer periphery (41; 41a) in the radial direction perpendicular to the rotating axis (L), with the inner periphery (42; 42a) including a lip (43; 43a) having an outer surface (432; 432a) pressing against the pressing rod . <EOS>