A Canadian politician has blamed cheap, tight underwear for his sudden departure from Parliament causing him to miss a vote on anti-terror legislation.

Opposition lawmaker Pat Martin told Parliament Thursday he had bought a bunch of men's underwear for half price which were clearly too small for him, making it difficult to sit for any length of time.

He apologized for missing the vote amid laughter in the chamber and asked for his vote to be counted.

The speaker of the House of Commons allowed his vote.

On Twitter, Canadians quipped about Martin being "poorly briefed" and how he "briefed" Parliament on why he missed the vote.

Martin, who often uses humor in Parliament, once asked the government if they were prepared for a zombie invasion.