Provided is an electrophotographic photosensitive member improved both in wear resistance and in image unevenness. The electrophotographic photosensitive member includes a support, and a photosensitive layer and a surface layer on the support, wherein the surface layer is a cured product of a composition containing a compound represented by the formula (A) and a charge-transporting substance having at least one reactive functional group selected from the group consisting of a hydroxy group, a methoxy group, an amino group, a thiol group, and a carboxyl group.