The invention discloses a pit-type garbage compressor and relates to a garbage treatment device. The invention provides a pit-type garbage compressor which has simple structure, good compression effect, convenient transferring, high automation degree and good security. The pit-type garbage compressor is provided with a stand, a compression chamber, a compression cylinder seat, a compression cylinder, a compression plate, a push-off cylinder, a push-off cylinder seat, a push-off plate, a gate hoisting rack, a box hoisting rack, a transfer box pushing-pulling mechanism, a hydraulic control device and a circuit control device; the compression chamber is arranged on the stand, the compression cylinder is horizontally arranged on the compression cylinder seat, and the compression plate is arranged at the front end of a piston rod of the compression cylinder; the push-off cylinder is horizontally arranged on the push-off cylinder seat, the push-off plate is arranged at the front end of a piston rod of the push-off cylinder, the gate hoisting rack is provided with a gate hoisting frame, a gate hoisting cylinder and a gate hoisting rod; the box hoisting rack is provided with a left box hoisting rack and a right box hoisting rack which are respectively arranged at the left side and the right side of a transfer box, wherein the left box hoisting rack is provided with a box hoisting frame, a box hoisting cylinder and a box hoisting fork plate; the transfer box pushing-pulling mechanism is arranged at the lateral side of the box hoisting rack, and the rear end of a pushing-pulling rod is connected with a piston rod of a pushing-pulling cylinder.