David Cameron has warned MPs that failing to rule out a no-deal Brexit would be a "disaster" for Britain.

The former Conservative prime minister said he backed Theresa May's attempts to secure a deal despite her second overwhelming defeat in Parliament on Tuesday night.

READ MORE: Brexit: Five things you need to know about the next 48 hours

"I've always supported the Prime Minister in her attempts to have a close partnership deal with Europe and she continues to have my support," he told Sky News.

"That's the right thing to do. Obviously what needs to happen next is to rule out no deal, that would be a disaster for our country, and to seek an extension and I'm sure that's what's going to happen next."

READ MORE: MPs to vote on blocking no-deal Brexit after Theresa May suffers defeat

Asked if there should be a second referendum, Mr Cameron added: "What happened last night is some people who've always wanted Brexit have voted against it again and this is exasperating for the Prime Minister.

"And I think she should feel free to look at other alternatives for partnership deals and the like in order to solve this problem because you can't go on with a situation with people who want Brexit keep voting against it."