Scotland voted on Thursday on whether to stay within the United Kingdom or end the 307-year-old union with England and become an independent nation in a finely balanced referendum with far-reaching consequences.
From remote highlands and islands to the tough city estates of Glasgow, people were almost equally divided over a vote watched closely by Britain's allies, investors and restive regions at home and abroad.
Continue Reading Below
Pre-voting opinion polls gave the "No" campaign - those in favor of remaining in the United Kingdom - a slight edge.
Hundreds of thousands of people were still making up their minds as polling stations opened, but as the day wore on, the British currency and major share prices rose on expectations there would not be a split.
Tennis star Andy Murray sent a powerful last-minute message in support of the pro-independence "Yes" vote, tweeting "Let's do this" after months of silence on his views.
Many people see the choice as one of "hearts or heads" - whether emotional stirrings and yearnings would outweigh pragmatic concerns over the risks and uncertainty that an independent state would face.
"I've waited all my life for this," said the first voter in Edinburgh's Waverley Court, a businessman who gave only his first name, Ron. "It's time to break with England. 'Yes' to independence."
As he spoke, a couple of workers hurrying by in the morning mist and drizzle shouted "Vote No!""
Those opposed to independence say a split could slow economic growth, affect the United Kingdom's defense capability, threaten the unity of other countries and tip the balance in favor of people who want Britain to leave the European Union.
French President Francois Hollande said it would be decisive for Europe as well as Britain. "After half a century of building Europe, we risk entering a period of deconstruction," he said on Thursday.
Those in favor say such fears are overblown. They see a bright future for an independent Scotland in Europe, a fairer society and good defense and economic cooperation with London.
The issue has divided families and friends but also electrified this country of 5.3 million in months of debate. Bookmakers reported a rush of bets for "Yes," but said "No" remained the odds-on favorite.
One group of "Yes" voters marched to an Edinburgh polling station with a bagpiper playing "Scotland the Brave," while on the city's main Princes Street, overlooked by its castle, "Better Together" campaigners handed out leaflets saying "Vote No." "It's not worth the risk. There's no going back."
Leaders of both sides have urged Scots to consider the long-term implications of answering "Yes" or "No" to the question: "Should Scotland be an independent country?"
Alex Salmond, the 59-year-old nationalist leader, told hundreds of supporters in Perth at a final rally: "Scotland's future must be in Scotland's hands ... This is our opportunity of a lifetime and we must seize it with both hands."
The independence movement says Scots should be able to choose their own leaders and make their own decisions rather than be ruled from London. Supporters of the union say Scotland is more prosperous and secure as part of the United Kingdom and the ties that bind its peoples are too tight to be undone.
Salmond has said Queen Elizabeth should stay on as Queen of Scots. She has remained above the fray, in keeping with the constitution, but said on Sunday she hoped Scots would choose "carefully."
WHAT WOULD BE LEFT?
The prospect of breaking up the United Kingdom, the world's sixth-largest economy and a permanent member of the United Nations Security Council, has prompted citizens and allies alike to question what would be left, while the financiers of the City of London have warned of market turmoil.
Sterling hit a near two week high against the dollar on Thursday and major shares continued their climb away from lows at the start of the month when polls showed a small, surprise lead for the pro-independence side. Dealers said trading was likely to be choppy overnight as results come in.
British politicians, banks and businessmen have closed ranks to warn of economic hardship, job losses and investment flight should Scots decide to go it alone. Defense would also be a big question - Britain's submarine-borne nuclear arsenal, part of NATO's defenses - is based in Scotland's Firth of Clyde.
The United States has made clear it wants the United Kingdom, its main ally in Europe, to remain together.
"The UK is an extraordinary partner for America and a force for good in an unstable world. I hope it remains strong, robust and united," U.S. President Barack Obama said.
European leaders have warned that an independent Scotland would have to rejoin the European Union and could face resistance. Spain has been especially vocal, fearing it would further inspire separatists in Catalonia and the Basque Country.
Many of those voting for independence felt rule from London had opened too wide a gap between rich and poor. "I want a different kind of Scotland, a socially just Scotland," said Lisa Clark, a church worker, after casting her vote for "Yes."
Five surveys showed support for independence at 48 percent, compared with 52 percent for the union, while a sixth poll showed it even closer at 49 percent to 51 percent. Another showed unionists at 53 percent and separatists at 47 percent.
The surveys also showed as many as 600,000 voters were undecided, making the vote too close to call. Polling stations close at 2100 GMT and a result is expected early on Friday.
In Glasgow, there was a carnival-like atmosphere, with some people wearing blue-and-white face paint. A man running a financial services business and a hotel on the Isle of Skye had returned to the city, his home town, to cast a "No" vote.
"I think it's a great concept, but working in finance I can see the difficulties," he said, giving his name as Eddie.
Salmond has employed a mix of shrewd calculation and nationalist passion to haul the "Yes" campaign from far behind to within a whisker of winning his dream of an independent Scotland. But the momentum needs to continue if he is to win.
Facing the biggest internal threat to the United Kingdom since Ireland broke away nearly a century ago, Britain's Prime Minister David Cameron could lose his job if Scotland breaks away.
The 47-year-old prime minister has conceded his privileged English background and Conservative politics mean he is not the best person to win over Scots, although he has made emotional appeals for Scotland to stay in Britain's "family of nations."
That has left the leadership of the unionist case to the opposition Labor party, the only party with the local support capable of checking the secessionist Scottish National Party.
Former Labor Prime Minister Gordon Brown, a Scot who has in recent days led the battle cry for the union, on Wednesday warned Scots in Glasgow, Scotland's biggest city and a crucial battleground, that Salmond was "leading us into a trap."
"Have confidence, stand up and be counted tomorrow," Brown thundered, fists clenched, to applause and cheers from unionist supporters. "Say to your friends, for reasons of solidarity, sharing, pride in Scotland, the only answer is vote 'No'."
A UNITED KINGDOM?
If the vote goes the way of independence, Britain and Scotland would face 18 months of talks on how to carve up North Sea oil and what to do about EU membership.
Scotland says it will use the pound after independence, but London has ruled out a formal currency union, while Britain will have to decide what to do about the nuclear submarine base on the Clyde, which the nationalists want to evict.
Salmond has accused London of orchestrating a campaign by business leaders aimed at spooking Scots after businesses from oil giant BP to financial services group Standard Life cautioned about the risks of independence.
To blunt Salmond's argument for breaking away, Britain's rulers promised to guarantee Scotland high levels of state funding and grant Scots greater control over finances.
British leaders accept that whichever way the vote goes, the United Kingdom's structure will have to change, as granting more powers to Scotland will provoke calls for a less centralized state from voters in England, Wales and Northern Ireland.
Some currency traders in London prepared to stay up all night to buy or sell sterling on the results of the vote.
U.S. Treasury Secretary Jack Lew said there were potentially significant economic ramifications from the vote and that a strong United Kingdom was important.
Electoral officials said the result is expected by breakfast time on Friday morning, but partial results will give an indication of the trend after the count of major cities such as Glasgow are declared around 0400 GMT.
With more than 486,000 voters, Glasgow is crucial, and the way its traditional Labor supporters go could be decisive. Edinburgh and Aberdeen, which with Glasgow make up nearly a quarter of the vote, are also expected around about that time.
(Additional reporting by Alistair Smout in Edinburgh, Dylan Martinez in Perth, Kate Holton and Andrew Osborn in London; editing by Philippa Fletcher)