The invention relates to the technical field of industrial robots, in particular to a two-degree-of-freedom joint structure. The two-degree-of-freedom joint structure comprises a first rack, a first driving device, a first gear shaft, a first bevel gear, a second rack, a second driving device, a second gear shaft, a second bevel gear, a third rack, an output gear shaft, an output bevel gear, a clearance-elimination driving device, a clearance-elimination gear shaft and a clearance-elimination bevel gear. The first bevel gear is arranged on the first gear shaft, and the first driving device drives the first gear shaft to rotate. The second bevel gear is arranged on the second gear shaft, and the second driving device drives the second gear shaft to rotate. The output bevel gear is arranged on the output gear shaft. The clearance-elimination gear is arranged on the clearance-elimination gear shaft, and the clearance-elimination driving device drives the clearance-elimination gear shaft to rotate. The output bevel gear and the clearance-elimination bevel gear are engaged with the first bevel gear and the second bevel gear correspondingly at the same time. By adoption of the two-degree-of-freedom joint structure, the pitching motion can be achieved, the revolving motion and the pitching and revolving combined motion can also be achieved, and the transmission precision is higher.