An electrophotographic photosensitive member, comprising: a support; an undercoat layer formed on the support; and a photosensitive layer formed on the undercoat layer; wherein the undercoat layer is a layer of which an azole compound is detected by gas chromatography analysis when the undercoat layer is heated at 150°C for 60 minutes by headspace method, and the undercoat layer is a layer of the following (i) or (ii); (i) a layer comprising: a polymerized product of an isocyanate compound, and a polyol resin; the azole compound; and metal oxide particles; (ii) a layer comprising: a polymerized product of a blocked isocyanate compound, the blocked isocyanate compound has an isocyanate group which has been blocked with the azole compound, and a polyol resin; metal oxide particles; the azole compound is at least one selected from the group consisting of a compound represented by the following formula, a compound represented by the following formula, a compound represented by the following formula and a compound represented by the following formula, wherein, in the formulas to, R 1 to R 4, R 11 to R 13, R 21 to R 23 and R 31 to R 34 each independently represents a hydrogen atom or an alkyl group having 1 to 3 carbon atoms, wherein A and B satisfy the following formula, 5.0 × 10 − 7 ≤ A / B ≤ 1.5 × 10 − 2 where, A (g/cm 3) represents a value that a detectable amount of the azole compound in the undercoat layer divided by a volume of the undercoat layer, when the undercoat layer is heated at 150°C for 60 minutes by the headspace method, and B (g/cm 3) represents a value that an amount of the metal oxide particles divided by a volume of the undercoat layer. a support; an undercoat layer formed on the support; and a photosensitive layer formed on the undercoat layer; wherein the undercoat layer is a layer of which an azole compound is detected by gas chromatography analysis when the undercoat layer is heated at 150°C for 60 minutes by headspace method, and the undercoat layer is a layer of the following (i) or (ii); (i) a layer comprising: a polymerized product of an isocyanate compound, and a polyol resin; the azole compound; and metal oxide particles; (ii) a layer comprising: a polymerized product of a blocked isocyanate compound, the blocked isocyanate compound has an isocyanate group which has been blocked with the azole compound, and a polyol resin; metal oxide particles; (i) a layer comprising: a polymerized product of an isocyanate compound, and a polyol resin; the azole compound; and metal oxide particles; a polymerized product of an isocyanate compound, and a polyol resin; the azole compound; and metal oxide particles; (ii) a layer comprising: a polymerized product of a blocked isocyanate compound, the blocked isocyanate compound has an isocyanate group which has been blocked with the azole compound, and a polyol resin; metal oxide particles; a polymerized product of a blocked isocyanate compound, the blocked isocyanate compound has an isocyanate group which has been blocked with the azole compound, and a polyol resin; metal oxide particles; the azole compound is at least one selected from the group consisting of a compound represented by the following formula, a compound represented by the following formula, a compound represented by the following formula and a compound represented by the following formula, wherein, in the formulas to, R 1 to R 4, R 11 to R 13, R 21 to R 23 and R 31 to R 34 each independently represents a hydrogen atom or an alkyl group having 1 to 3 carbon atoms, wherein A and B satisfy the following formula, 5.0 × 10 − 7 ≤ A / B ≤ 1.5 × 10 − 2 where, A (g/cm 3) represents a value that a detectable amount of the azole compound in the undercoat layer divided by a volume of the undercoat layer, when the undercoat layer is heated at 150°C for 60 minutes by the headspace method, and B (g/cm 3) represents a value that an amount of the metal oxide particles divided by a volume of the undercoat layer.