A method of producing an optical member including at least a pair of optical substrates, in which both of a transparent optical substrate having a light shielding portion on a surface thereof and another optical substrate to be bonded to the transparent optical substrate having a light shielding portion on a surface thereof are bonded to each other through a procedure including the following Process 1 to Process 3 using an ultraviolet curable resin composition, the method comprising: Process 1: a process of forming a coating layer by coating the ultraviolet curable resin composition on at least either of bonding surfaces of the transparent optical substrate having a light shielding portion on a surface thereof and another optical substrate to be bonded to the transparent optical substrate, and then allowing the coating layer to have a light shielded region selectively cured and the other part uncured by selectively irradiating the light shielded region, to be described below, in the coating layer thus obtained with ultraviolet rays, in which the light shielded region described above means a part of coating layer where ultraviolet rays do not reach since the part is shielded from ultraviolet rays by a light shielding portion when the two optical substrates are bonded to each other and the coating layer is irradiated with ultraviolet rays through the transparent optical substrate having a light shielding portion on the surface thereof; Process 2: a process of bonding the two optical substrates to each other by interposing the coating layer obtained in Process 1 between the bonding surfaces of the two optical substrates; and Process 3: a process of curing the uncured coating layer, which is interposed between the two optical substrates, by irradiating a laminated body having at least a pair of optical substrates bonded to each other by Processes 1 and 2 with ultraviolet rays through the transparent optical substrate having a light shielding portion. Process 1: a process of forming a coating layer by coating the ultraviolet curable resin composition on at least either of bonding surfaces of the transparent optical substrate having a light shielding portion on a surface thereof and another optical substrate to be bonded to the transparent optical substrate, and then allowing the coating layer to have a light shielded region selectively cured and the other part uncured by selectively irradiating the light shielded region, to be described below, in the coating layer thus obtained with ultraviolet rays, in which the light shielded region described above means a part of coating layer where ultraviolet rays do not reach since the part is shielded from ultraviolet rays by a light shielding portion when the two optical substrates are bonded to each other and the coating layer is irradiated with ultraviolet rays through the transparent optical substrate having a light shielding portion on the surface thereof; Process 2: a process of bonding the two optical substrates to each other by interposing the coating layer obtained in Process 1 between the bonding surfaces of the two optical substrates; and Process 3: a process of curing the uncured coating layer, which is interposed between the two optical substrates, by irradiating a laminated body having at least a pair of optical substrates bonded to each other by Processes 1 and 2 with ultraviolet rays through the transparent optical substrate having a light shielding portion.