Provided is an electrophotographic photosensitive member including a support, an undercoat layer formed on the support, and a photosensitive layer formed on the undercoat layer, in which the undercoat layer contains a polymer of a composition containing a compound represented by the formula (1).