Senator Fraser Anning has been hit by an egg during an event in Melbourne. It comes after Anning's comments on the Christchurch shooting were condemned.

They call Fraser Anning the “accidental” senator.

Just 19 people voted for Anning at the 2016 election. Nineteen.

He got into parliament anyway, gaining a $200,000 taxpayer-funded salary and a platform from which to spew his dangerous bile.

Until this week, many saw Anning as a troubling but ultimately inconsequential sideshow, doomed to leave the Senate at May’s election and fade back into irrelevance.

But his response to the New Zealand mosque massacre, and subsequent confrontation with an egg-wielding teenager, have earned him notoriety around the world.

RELATED: Teenager speaks after egging Fraser Anning

What bizarre wrinkle in Australia’s electoral system allowed Anning to become a senator with so little support?

This is how it happened.

Anning was a Senate candidate for One Nation at the 2016 election. The party performed particularly well in his state, Queensland, with 9 per cent of the vote.

In total, 250,000 Queenslanders voted for One Nation’s ticket. Far fewer went to the trouble of voting for a specific candidate. But the result was strong enough to earn the party two Senate seats.

The first one went to Pauline Hanson, who personally drew 21,000 first-preference votes. Malcolm Roberts was second on the ticket, meaning he was elected to the Senate as well, even though just 77 people specifically voted for him.

Mr Roberts served in the Senate until it emerged he was a British citizen. The High Court ruled him ineligible, along with then deputy prime minister Barnaby Joyce and three others, and he was booted from parliament.

“I’ve lost a great man in Malcolm Roberts. He’s my backbone,” a tearful Ms Hanson said at the time.

“I think he’s unique and he has done so much for this parliament.”

Mr Roberts subsequently ran for Queensland’s state parliament, and lost.

He could return to federal politics later this year, as he has been picked to lead One Nation’s Queensland Senate ticket at the election.

Parliament’s rules are clear. If a sitting senator dies or quits during their term in office, they get replaced with another member of their party.

That is how Anning, with his paltry 19 votes, got into parliament. When Mr Roberts was ruled ineligible, One Nation replaced him with Anning, who had been third on the party’s ticket in 2016.

Wait, it gets better.

Having used One Nation to get into the Senate, Anning quit the party during his very first day on the job.

It infuriated Ms Hanson, who had wanted Anning to relinquish his seat to allow Mr Roberts, his citizenship problem sorted, to return.

“I was disappointed Mr Anning made no attempt to contact me or any One Nation executive member off the back of multiple requests to discuss his future plans,” Ms Hanson said.

“Instead he chose to release scathing media releases, demanding I pledge my support to him without even meeting or speaking to him.”

Mere minutes before he was sworn in, Anning declared he would sit in the Senate as an independent.

By the time he delivered his loathsome maiden speech a few months later, Anning had joined Katter’s Australia Party.

In that speech, he called for a total shutdown of Muslim immigration to Australia, praised the White Australia Policy and advocated a “final solution to the immigration problem”.

The phrase “final solution” is closely associated with the Nazis’ systematic murder of Jews during World War II.

“While all Muslims are not terrorists, certainly all terrorists these days are Muslims. So why would anyone want to bring more of them here?” Anning said during the speech.

“The final solution to the immigration problem is of course a popular vote.”

His comments were panned by politicians across the political spectrum, and the irony of a man who was elected by 19 people calling for a “popular vote” was not lost on observers.

Bob Katter defended Anning’s speech at the time, but the rogue senator was kicked out of the party in October last year after it decided his appeals to racism had gone too far.

That decision doomed Anning’s career. Without a party backing him up, he will exit parliament at the election.

Many voters wish he could leave sooner — more than 700,000 have signed a petition calling for him to be expelled from the Senate.

In truth, the government does not have the power to get rid of Anning. Instead, the Coalition and Labor will move a joint motion censuring him, to be moved when parliament next sits.

Both major party leaders ripped into Anning today. Bill Shorten was particularly savage, calling Anning’s comments “disgusting”.

“This fellow is chasing a headline,” he said.

“I do wonder if he’s made Australians less safe overseas.

“That’s another reason not to give this fool any more oxygen.

“We’ve got to call time on these fringe dwellers, these evil jokers at the margins.”

But this pile-on is arguably too late. Our political system has already given Anning a voice — one he never earned.

Nobody voted for him. They voted for One Nation, a party Anning ditched as soon as he got to Canberra. The Australian Electoral Commission literally lists his share of the popular vote as 0.00 per cent.

It is a humiliating number; a stinging reminder that no one asked Anning for his putrid contribution to Australian politics. You would need to add another three decimal places for him to even register.

Remember that next time someone claims he speaks for a “silent majority” that doesn’t exist.