PROBLEM TO BE SOLVED: To provide a photosensitive resin composition which has excellent moisture heat resistance and gives a cured product having a high elastic modulus and superior holding property for a hollow structure, and which is suitably used as a cap material to form a hollow structure in an electronic component or the like.SOLUTION: The photosensitive resin composition comprises: a photopolymerizable compound (A) including a urethane compound (A1) having at least one of an acryloyl group and a methacryloyl group; and a photopolymerization initiator (B).