A ratchet wrench including a head section formed with two slots and two pawls each having a post slidably fitted through the slots. The ratchet wrench further includes a shift member formed with two slots respectively intersecting the slots of the head section. The posts of the pawls are slidably inlaid in the slots of the head section and the slots of the shift member. By means of shifting the shift member, the pawls can be directly driven to slide along the slots, whereby one of the pawls is engaged with the ratchet wheel, while the other of the pawls is disengaged from the ratchet wheel.