A method of manufacturing an optical fiber (3), comprises applying a UV cured resin to an outer circumference of a running glass optical fiber, forming an accompanying flow (f) composed of an inert gas (G1) near a surface of the resin by passing the glass optical fiber (2a) immediately after having the resin being applied through an atmosphere of the inert gas, and forming a coating by irradiating the resin coated with the accompanying flow with ultraviolet ray to cure the resin while the glass optical fiber accompanied by the accompanying flow is passed through a UV transmission tube (132) to which a gas containing oxygen (G2) is supplied.