The invention discloses a pest trapping and killing device, belonging to the technical field of forest tree pest control equipment. the pest trapping and killing device comprises a workbench, whereina motor seat is connected to the top of the workbench, a motor piece is connected to the outer wall of the motor seat, a cam is connected to the output end of the motor piece, a moving block is connected to the outer wall of the workbench in a sliding manner, a connecting rod is connected to the outer wall of the moving block, an extrusion plate is connected to one end, far away from the moving block, of the connecting rod, the cam is movably abutted against the extrusion plate, the outer wall of the moving block is cut with a limiting frame, a sliding column is connected to the inner wall ofthe limiting frame in a sliding manner, a swing rod is connected to the outer wall of the sliding column, a fixing seat is further connected to the top of the workbench, a first elastic component is connected between the moving block and the fixing seat. According to the device, pests are attracted through a swinging bulb, and the pests are captured through a capturing pipe, so that the pest killing effect of the device is ensured, and the natural ecological balance is prevented from being damaged due to abuse of chemical pesticides.