A resin composition comprising: a bismaleimide compound comprising a constituent unit represented by the following formula, and maleimide groups at both ends of the molecular chain; and an imidazole compound represented by the following formula: wherein R 1 represents a linear or branched alkylene group having 1 to 16 carbon atoms, or a linear or branched alkenylene group having 2 to 16 carbon atoms; R 2 represents a linear or branched alkylene group having 1 to 16 carbon atoms, or a linear or branched alkenylene group having 2 to 16 carbon atoms; each R 3 independently represents a hydrogen atom, a linear or branched alkyl group having 1 to 16 carbon atoms, or a linear or branched alkenyl group having 2 to 16 carbon atoms; and each n 1 independently represents an integer of 1 to 10, and wherein each of R 4 to R 7 independently represents a hydrogen atom, an aldehyde group, an alkyl group having 1 to 20 carbon atoms and optionally having a substituent, or an aryl group having 6 to 20 carbon atoms and optionally having a substituent, and the total number of carbon atoms of R 4 to R 7 is 8 or more, wherein the resin composition further comprises a compound comprising one or more carboxy groups, which comprises a compound represented by the following formula: wherein each R 8 independently represents a group represented by the following formula or a hydrogen atom; and each R 9 independently represents a hydrogen atom, or a linear or branched alkyl group having 1 to 6 carbon atoms, provided that at least one R 8 is a group represented by the following formula: wherein -* represents a bonding hand; and wherein the resin composition further comprises a photo initiator. a bismaleimide compound comprising a constituent unit represented by the following formula, and maleimide groups at both ends of the molecular chain; and an imidazole compound represented by the following formula: wherein R 1 represents a linear or branched alkylene group having 1 to 16 carbon atoms, or a linear or branched alkenylene group having 2 to 16 carbon atoms; R 2 represents a linear or branched alkylene group having 1 to 16 carbon atoms, or a linear or branched alkenylene group having 2 to 16 carbon atoms; each R 3 independently represents a hydrogen atom, a linear or branched alkyl group having 1 to 16 carbon atoms, or a linear or branched alkenyl group having 2 to 16 carbon atoms; and each n 1 independently represents an integer of 1 to 10, and wherein each of R 4 to R 7 independently represents a hydrogen atom, an aldehyde group, an alkyl group having 1 to 20 carbon atoms and optionally having a substituent, or an aryl group having 6 to 20 carbon atoms and optionally having a substituent, and the total number of carbon atoms of R 4 to R 7 is 8 or more, wherein the resin composition further comprises a compound comprising one or more carboxy groups, which comprises a compound represented by the following formula: wherein each R 8 independently represents a group represented by the following formula or a hydrogen atom; and each R 9 independently represents a hydrogen atom, or a linear or branched alkyl group having 1 to 6 carbon atoms, provided that at least one R 8 is a group represented by the following formula: wherein -* represents a bonding hand; and wherein the resin composition further comprises a photo initiator.