The invention provides a petroleum and petrochemical wastewater recycling and treating device which comprises a bottom plate, a feeding frame, a first frame body, first purification devices, an air cylinder device, a second frame body, a second purification device, a blocking device and a discharging device. The bottom plate is provided with a first bracket, a first supporting rod, a second bracket, a third bracket, a fourth bracket, a second supporting rod and a first inclined rod. The feeding frame is provided with a first filtering mesh, a first through hole, a first blocking block, a first connection rod, a first holding rod, a first magnet, a second magnet, a second filter mesh and a first fixing block. The first frame body is provided with first through holes, second through holes, first pipes, air bags, first valves, second pipes, second valves, first positioning blocks, first rollers and bristles. Each first purification device comprises a fist isolation frame, a fourth through hole and a third filtering mesh. The air cylinder device comprises an air cylinder, a first push rod, a first blocking plate and a first sealing ring. By means of the petroleum and petrochemical wastewater recycling and treating device, petroleum and petrochemical wastewater can be effectively purified and treated, and treatment efficiency is high.