Provided is an electrophotographic photosensitive member including a support, an undercoat layer, and a photosensitive layer in this order, in which: the undercoat layer does not contain a metal oxide, or contains the metal oxide but the content of the metal oxide in the undercoat layer is 10 mass % or less; and the undercoat layer contains a polymerized product of a composition containing at least one kind of anthraquinone derivative selected from the group consisting of a compound represented by the formula (1) and a compound represented by the formula (2).