During the final debate the counsel general Julie James, who introduced the bill, dubbed the legislation “ground-breaking” and said it would ensure the next Senedd “recognises and demonstrates the paramount importance of the accountability of members to those who have placed them here”.

Plaid Cymru’s Adam Price, who has campaigned on this issue for decades said: “No parliament has required government by law to prohibit deliberate falsehood across the breadth of electoral speech.

“That is the step Wales takes tonight”.

Welsh Liberal Democrats leader Jane Dodds told the Senedd she had previously spoken about a crisis of trust in politics.

She added: “This bill is meant to respond to that crisis of trust, it’s our statement that the Senedd will not tolerate members whose behaviour undermines our institution.”

Despite the support there was still some reservations, the Conservatives Paul Davies, said that there was “still a risk that the bill could unintentionally constrain legitimate debate and political expression.

He stressed it was “important that any new system is proportionate, workable and capable of delivering the outcomes intended”.