Provided is a photosensitive resin composition that is, after being applied to an adherend surface, rapidly cured by photoirradiation to form a cured product having excellent light-shielding ability and adhesiveness (preferably, further having excellent reflow heat resistance). The photosensitive resin composition includes components (A), (C), and (D) and preferably further includes a component (B) as follows: