The invention relates to the field of optical communication, in particular to a mounting and welding method for controlling tracking errors of coaxial optical devices. The mounting and welding methodfor controlling the tracking errors of the coaxial optical devices comprises the following steps of (1), mounting the optical devices; (2), mounting an isolator; (3), welding a pipe body; and (4), welding a plug pin. On the premise of ensuring correct mounting operation, a laser coupling welding process of the pipe body and the plug pin is adjusted, spot welding is adopted, each group of three welding spots are respectively welded by three welding guns, energy is uniformly distributed, stress pulling is consistent so that light path deviation cannot be caused, the welding spots welded by the plug pin are distributed in a plum blossom shape, welding symmetry can be increased, and sufficient stress release is guaranteed, so that performance of the devices is greatly improved, the power variation range along with the external environment temperature is reduced, the high-low temperature power errors of the coaxial devices are better controlled within the standard range, the rejection rateis reduced, the cost is low, and thus the mounting and welding method is suitable for batch production of coaxial products.