The invention relates to a water pumping and draining and gas producing system of a horizontal gas well machine, which is used for underground water drainage and gas production. By adopting the system, normal production of a gas well can be kept, the productivity of the gas well is increased, and the lifting capacity of a pump to formation water is increased. The system adopts the technical scheme that in an underground gas-liquid separation lifting part, a gas-water separator is connected and fixed with a linear motor pump by a fixator at a production interval of the well; in a ground treatment operation part, the linear motor pump is connected with a gas producing tree by an intelligent coiled tubing, and then the gas producing tree is connected with a ground treatment device by a pipeline; in an intelligent control device, a cable is arranged in the intelligent coiled tubing, one end of the cable is connected with the linear motor pump and the inlet cross section of the gas-water separator, the other end of the cable is connected with a ground intelligent control terminal, and a set of intelligent control program and microcomputer equipment are installed in the intelligent control terminal. The water draining and gas producing system has the functions of preventing sand jamming, increasing the lifting capacity to the formation water and optimizing the productivity of the gas well and is used for water drainage and gas production operation, and maintenance is convenient.