In his 'Interpretations of Dreams' Freud cited a memory:
"I may have been ten or twelve years old, when my father began to take me with him on his walks and reveal to me in his talk his views about things in the world we live in. Thus it was, on one such occasion, that he told me a story to show me how much better things were now than they had been in his days.
'When I was a young man,' he said, 'I went for a walk one Saturday in the streets of your birthplace; I was well dressed, and had a new fur cap on my head. A Christian came up to me and with a single blow knocked off my cap into the mud and shouted: 'Jew! Get off the pavement!'
'And what did you do?' I asked. 'I went into the roadway and picked up my cap,' was his quiet reply.
This struck me as unheroic conduct on the part of the big, strong man who was holding the little boy by the hand. I had contrasted this situation with another which befitted my feelings better: the scene in which Hannibal's father, Hamilcar Barca, made his boy swear before the household altar to take vengeance on the Romans. Ever since that time Hannibal had had a place in my fantasies."
He goes on to say:
This was obviously a decisive childhood memory that emerged in Freud's self-analysis. It contains the moment in which he lost his idealization for his own father and substituted a new ego ideal. Hannibal, although not a Jew, was a Semite and an enemy of Rome, which perhaps symbolized the Catholic church and Christianity.