A new Brexit deal has been agreed between the UK and the European Union.

MPs will now be asked to approve the withdrawal agreement during a special sitting of the House of Commons on Saturday.

However, after the deal was announced the Democratic Unionist Party said an earlier statement saying it could not yet back Prime Minister Boris Johnson's Brexit plans "still stands".

Johnson is likely to need the DUP's votes and influence on some Tory backbenchers to get the deal - which he described as "great" - through parliament.

First Minister Nicola Sturgeon confirmed SNP MPs would reject the deal and said Scotland was being "treated unfairly".

She said "While there remains uncertainty over whether this proposed deal will pass, what is absolutely clear is that it would take Scotland out of the European Union, out of the single market and out of the customs union against the overwhelming democratic will of the people of Scotland.

"Scotland did not vote for Brexit in any form, and SNP MPs will not vote for Brexit in any form - especially when it is clear that Scotland, alone of the nations of the UK, is being treated unfairly."

The Scottish Government's Brexit minister Michael Russell said "all Brexit deals damage Scotland".

He tweeted: "There is no such thing as a 'great' Brexit deal. All Brexit deals damage Scotland, and this one is particularly destructive.

"If it survives the House of Commons on Saturday democracy demands it be put to the Scottish Parliament and people. Both are very likely to reject it."

Scottish Conservatives interim leader Jackson Carlaw urged SNP and Labour MPs to back the deal.

He wrote on Twitter: "It's time to get Brexit sorted. If Labour and SNP MPs are against us leaving without a deal, then it's time to back this one. The country needs to move on."

The announcement of an agreement came as the PM was heading for a vital EU summit in Brussels and follows days of intense negotiations.

Johnson tweeted: "We've got a great new deal that takes back control - now parliament should get Brexit done on Saturday so we can move on to other priorities like the cost of living, the NHS, violent crime and our environment."

He added: "This is a deal which allows us to get Brexit done and leave the EU in two weeks' time, so we can then focus on the people's priorities and bring the country back together again.

"This new deal takes back control. Under the previous negotiation, Brussels maintained ultimate control and could have forced Britain to accept EU laws and taxes for ever.

"We will leave the EU's Customs Union as one United Kingdom and be able to strike trade deals all around the world."

European Commission president Jean-Claude Juncker said the deal was a "fair and balanced agreement for the EU and the UK and it is testament to our commitment to find solutions".

In a letter to European Council president Donald Tusk, Mr Juncker wrote: "As I have indicated to you in the past, I believe it is high time to complete the withdrawal process and move on, as swiftly as possible, to the negotiation on the European Union's future partnership with the United Kingdom."

Corbyn said the new deal should be rejected by MPs when it comes before the Commons.

He said: "From what we know, it seems the Prime Minister has negotiated an even worse deal than Theresa May's, which was overwhelmingly rejected.

"These proposals risk triggering a race to the bottom on rights and protections: putting food safety at risk, cutting environmental standards and workers' rights, and opening up our NHS to a takeover by US private corporations.

"This sell-out deal won't bring the country together and should be rejected. The best way to get Brexit sorted is to give the people the final say in a public vote."

Jo Swinson, leader of the Liberal Democrats and East Dunbartonshire MP, said the PM's deal would be "bad for our economy" and said her party would continue to push for a second referendum.

"The fight to stop Brexit is far from over," she said. "Boris Johnson's deal would be bad for our economy, bad for our public services, and bad for our environment.

"The next few days will set the direction of our country for generations, and I am more determined than ever to stop Brexit.

"When this deal comes to parliament we will use every possible opportunity to give the public a 'people's vote' on the Brexit deal that includes the option to remain in the European Union."