The corrosion inhibition performance of pyridine derivatives (4-methylpyridine and its quaternary ammonium salts) and sulfur-containing compounds (thiourea and mercaptoethanol) with different molar ratios on carbon steel in CO2-saturated 3.5 wt.% NaCl solution was investigated by weight loss, potentiodynamic polarization, electrochemical impedance spectroscopy and scanning electron microscopy. The synergistic corrosion inhibition mechanism of mixed inhibitors was elucidated by the theoretical calculation and simulation. The molecule of pyridine derivatives compound with larger volume has the priority to adsorb on the metal surface, while the molecules of sulfur-containing compounds with smaller volume fill in vacancies. A dense adsorption film would be formed when 4-PQ and sulfur-containing compounds are added at a proper mole ratio.