The utility model relates to the technical field of tamping equipment, and discloses a deep narrow groove base hydraulic tamping device which comprises a supporting plate, a fixing frame is fixedly connected to the upper surface of the supporting plate, a first motor is fixedly connected to the outer wall of the fixing frame, a first lead screw is fixedly arranged at the output end of the first motor, and a second lead screw is fixedly arranged at the output end of the first lead screw. The outer wall of the first lead screw is rotationally connected to the inner wall of the fixing frame, the outer wall of the first lead screw is in threaded connection with a sliding frame, the outer wall of the sliding frame is slidably connected with a limiting frame, the lower surface of the limiting frame is fixedly connected to the upper surface of the supporting plate, and the outer wall of the sliding frame is fixedly connected with a second motor. A second lead screw is fixedly arranged at the output end of the second motor. According to the device, the supporting plate, the fixing frame, the first motor, the first lead screw, the sliding frame, the limiting frame, the second motor, the second lead screw and the sliding block are matched with one another, so that an operator can adjust the position of the ramming head under the condition that the whole device is not moved, the device is prevented from being moved frequently, and the construction efficiency is improved.