Brexit: How could Welsh MPs vote on Boris Johnson's deal?
Welsh MPs were urged to back the PM's Brexit deal on Saturday morning.
Boris Johnson told MPs "now is the time to get this thing done", saying a delay beyond 31 October would be "corrosive".
But MPs backed Sir Oliver Letwin's motion on Saturday, which is aimed at ruling out a no-deal exit, by 322 votes to 306.
Most of Wales' 40 MPs had been expected to reject Mr Johnson's Brexit deal. It was anticipated all six Welsh Conservatives would back it.
The vast majority, if not all, of Labour's 28 MPs were expected to vote down the deal, alongside Plaid Cymru, Welsh Liberal Democrat Jane Dodds and independent Guto Bebb.
Following the vote on the Letwin Amendment, the PM vowed to introduce legislation needed to implement his "excellent" agreement in Parliament next week.
- Commons set for knife-edge Brexit deal vote
- How might MPs vote on the Brexit deal?
- Saturday's Brexit debate: What to expect
- What is in Boris Johnson's new Brexit deal?
Ahead of the debate, Welsh Secretary Alun Cairns said the agreement was a "really good deal for Wales and the whole of the United Kingdom".
"I think this deal answers the calls of the public, answers the needs of business, and answers the excitement about the opportunity of leaving," he said.
But his counterpart in Labour Christina Rees, shadow Welsh secretary, accused Mr Johnson of setting "a course for deregulation, slashing rights and a more distant economic relationship".
"This is an even worse deal than Theresa May's," she said.
Welsh Tory MPs have mostly been loyal throughout the Brexit process - with the bulk having backed Theresa May's deal.
Two are in the government and would be expected to support the prime minister - Vale of Glamorgan MP Alun Cairns is Welsh Secretary and has urged all MPs to "get behind this deal so that we can focus on building on the UK government's plans for an ambitious Wales as part of a strong United Kingdom".
Carmarthen West and South Pembrokeshire MP Simon Hart is now a cabinet office minister. He voted Remain, but he has consistently called for a pragmatic approach to the UK's departure.
Three other backbenchers are likely to back the deal - Montgomeryshire's Glyn Davies, Preseli Pembrokeshire's Stephen Crabb and Monmouth's David Davies.
The latter said Boris Johnson's agreement with the EU was a "great compromise" that "works for everyone".
And Mr Crabb, who voted Remain in 2016, said it was "really good for the country".
He told BBC News he had been one of Mr Johnson's "doubters".
"He's brought back a deal which is more than tolerable," he said.
Former Brexit minister David Jones has told BBC Wales that he will be supporting Boris Johnson's deal to leave the European Union.
The Conservative MP for Clwyd West was a fierce critic of Theresa May's previous Brexit deal.
It would be a major surprise if any Welsh Labour MPs back the deal on Saturday, with one exception.
Labour MPs in Wales have repeatedly refused to back Theresa May's Brexit deal in previous votes, and leader Jeremy Corbyn has said his party will oppose the new one too.
So you would expect party frontbenchers like Neath's Christina Rees, Torfaen's Nick Thomas-Symonds, and Nia Griffith, who represents Llanelli, to oppose the deal.
Deputy Welsh Labour leader Carolyn Harris and party whips Jessica Morden, of Newport East, Nick Smith from Blaenau Gwent and Chris Elmore of Ogmore, are likely to do the same. As are shadow junior ministers Wayne David, of Caerphilly, Chris Ruane, of Vale of Clwyd, Kevin Brennan of Cardiff West and Gerald Jones, of Merthyr Tydfil and Rhymney.
Several Welsh Labour MPs have become vocal campaigners for a new referendum and are unlikely to back Boris Johnson's deal.
They include Cardiff North's Anna McMorrin, Cardiff Central's Jo Stevens, Stephen Doughty of Cardiff South and Penarth and Owen Smith, whose constituency is Pontypridd.
Speaking in the House of Commons, Mr Brennan reminded Stephen Barclay, the Secretary of State for Exiting the EU, that his boss had voted against Theresa May's deal twice before changing his mind.
Mr Brennan said: "Why doesn't the government have the courage, therefore, to allow the same privilege to the people of the country to make their judgement on this deal?"
Responding, Mr Barclay said Mr Brennan should back a general election, and said it was "important that politicians don't pick and choose which votes they adhere and that we respect the biggest vote in our country's history".
Others expected to vote the deal down include; Gower's Tonia Antoniazzi, Rhondda's Chris Bryant, Cynon Valley's Ann Clwyd, Delyn's David Hanson, Geraint Davies from Swansea West, Newport West's Ruth Jones, Clwyd South's Susan Elan Jones, Wrexham's Ian Lucas, Bridgend's Madeline Moon, Islwyn's Chris Evans, Albert Owen of Ynys Mon, and Mark Tami of Alyn and Deeside.
The exception is Aberavon's Stephen Kinnock, who does not want a further public vote and wants to see a deal passed. It is not known what he thinks about Mr Johnson's plans.
Before the deal was announced, he suggested he would back the deal if it met Labour's original six tests for whether it would support a deal. He did not answer a query from BBC Wales on Friday as to how he would vote.
Plaid Cymru's four MPs are opposed to Brexit. They want a further referendum held on the UK's status in the EU.
Westminster leader Liz Saville Roberts, who represents Dwyfor Meirionnydd, and her colleagues - Arfon's Hywel Williams, Carmarthen East and Dinefwr's Jonathan Edwards, and Ceredigion's Ben Lake - plan to vote against the deal.
"We will never vote to make Wales poorer - it is as simple as that," said Ms Saville Roberts.
Plaid said the deal aims for a looser relationship with the EU which could see "billions wiped off the Welsh economy".
The remaining two staunchly pro-Remain MPs are unlikely to join Boris Johnson in the aye lobby.
Jane Dodds is Wales' only Liberal Democrat MP. The party's Welsh leader was victorious in the Brecon and Radnorshire by-election in the summer and is no fan of Brexit.
"No-one should vote for this deal in the belief it either prevents no deal or 'gets Brexit done'," she said. "If this deal passes, we will have years of negotiating our future relationship with the EU and would be unable to prevent no deal at the end of the transition period," she said.
That leaves Aberconwy's Guto Bebb. He was a Conservative MP - but he was one of 21 MPs who had the Tory whip removed for backing an opposition bid to take control of the parliamentary timetable.
The independent told BBC Wales he would vote for the deal, but only if a new referendum is bolted on to it.