MPs in the House of Commons voted narrowly by 312 votes to 308 on Wednesday night to take a no-deal Brexit off the table.
The vote is non-binding and regarded as meaningless.
It was followed by a second vote when UK prime minister Theresa May's government was again defeated, essentially on the same thing - keeping a no-deal Brexit off the table. It was defeated by 321 votes to 278.
MPs also voted against the Malthouse Compromise by 374 votes to 164, which proposed a 21-month transition to a no-deal and a guarantee of rights of EU citizens in the UK, subject to agreement from EU27.
On Wednesday, the UK government announced tariff rates in the event of a no-deal Brexit, which would cost €611m for Irish agri-food exports to the UK.
Weekly podcast: Brexit tariffs, training vets and a soccer star
No-deal tariffs on Irish agri food exports to cost €611m