The invention relates to the field of gas exploitation equipment, and discloses a slag discharging and water draining device for a gas pipeline. The slag discharging and water draining device comprises a tank body, a negative pressure balance pipe, a water inlet pipe, a water draining pipe, a floating block, a linkage rod and a gas guide pipe, wherein a sealed cover plate is arranged at the top ofthe tank body, the negative pressure balance pipe is arranged in the middle of the cover plate, the top end of the negative pressure balance pipe communicates with a gas extraction pipeline, the water inlet pipe is fixedly arranged at the top of the side surface of the tank body in a sleeving mode, and one end of the water inlet pipe communicates with the gas extraction pipeline. According to theslag discharging and water draining device for the gas pipeline, through the structural design of an annular water storage chamber in the tank body, in the water inlet stage, the annular water storage chamber stores water firstly, in the water draining stage, the water stored in the annular water storage chamber flows down finally, so that before each time of water draining is finished, the gravitational potential energy of the water in the annular water storage chamber is used for providing kinetic energy, impurities such as coal slag and sludge which are adhered to the bottom of the tank body are washed away, and then the problem that the coal slag and the sludge are deposited and accumulated in the slag discharging and water draining device to cause blockage is solved.