The Labour leader was struck while visiting Finsbury Park Mosque in north London on Sunday. A 41-year-old man was arrested after Mr Corbyn was hit with the egg just before 4pm. Sky News have reported the man is thought to be a pro-Brexit demonstrator.
Jeremy Corbyn was unhurt during the incident which took place during the Visit My Mosque Day event.
He had earlier met worshippers at the Muslim Welfare Centre before the man allegedly smashed the egg over Mr Corbyn’s head.
A Metropolitan Police spokesman confirmed a member of parliament was hit in the incident.
A Met Police spokesman said: “A 41-year-old man was quickly detained by officers on scene and arrested on suspicion of assault. He is currently in custody at a north London police station.”
The alleged attacker is not thought to have been a regular guest to the mosque, but had been waiting inside the building.
It is believed that Mr Corbyn was chatting with community leaders when a man came from behind and smacked him over the head with an egg.
The attacker was quickly surrounded by people in the room and the police called.
He was overheard to say: “When you vote you get what you vote for. I believe in peace. I believe in voting.”
Mr Corbyn is believed to have left with a police escort at around 6.30pm.
He later tweeted: “Every year Muslim communities across the country open their doors to people of all faiths and none on Visit My Mosque Day.
“It’s a fantastic opportunity to build understanding across communities and educate ourselves about our diverse communities. Let’s build bridges not walls.”
Labour MP Jess Phillips leapt to Mr Corbyn’s defence as she condemned the “horrid” egging.
She tweeted: “Acts of violence against politicians, loses your argument, lessens your cause and demeans our democracy. It’s also just horrid. Don’t do it. If you don’t agree with him raise your voice not your fists.
“Jeremy and every other representative deserves better than how febrile thing are.”
Shadow Home Secretary Diane Abbott also took part in the annual Visit My Mosque Day event.
Onlookers handed Mr Corbyn red roses as he went into one venue.
The egg attack come after the Labour leader backtracked last week and vowed to support a second Brexit referendum.
His decision sparked anger from Brexiteers who are against holding a ‘People’s Vote.’
In May 2001, Labour’s then-deputy prime minister John Prescott was hit by an egg during an election campaign event.
The missile was launched by a man who Mr Prescott punched on the chin after being struck.
Ex-UKIP leader Nigel Farage and then-Labour leader Ed Miliband have also been egged during walkabouts.