Voters enter a polling station to place their votes during the referendum on Scottish independence in Pitlochry on Thursday. Polling in the referendum began as Scotland votes whether or not to end the 307-year-old union with the rest of the United Kingdom.

Reuters/Edinburgh

Scots began voting in an independence referendum on Thursday that will decide the fate of the United Kingdom, after opinion polls showed hundreds of thousands of them were still agonising over whether to stay with the 307-year union or back secession.

In the final hours before polling stations opened, leaders of both sides urged Scots to seize the reins of history in a vote that has divided families, friends and lovers but also electrified this country of 5.3mn.

From the remote Scottish islands of the Atlantic to the toughest city estates of Glasgow, voters are being asked to answer "Yes" or "No" to the question: "Should Scotland be an independent country?"

"This is an historic day for Scotland. I've waited all my life for this. It's time to break with England. 'Yes' to independence," said a businessman who gave his name as Ron and was the first person to vote at Edinburgh's Waverley Court.

As he spoke, a couple of workers hurrying by in the morning mist and drizzle shouted "Vote No!"

Five surveys - from pollsters YouGov, Panelbase, Survation, Opinium and ICM - showed support for independence at 48%, compared with 52% for the union.

An Ipsos MORI poll showed it even closer at 49% to 51%, while a second Survation poll, conducted by phone, showed unionists at 53% and separatists at 47%.

The surveys also showed as many as 600,000 voters remained undecided, making the vote far too close to call. Polling stations close at 2100 GMT and a result is expected early on Friday.

"This is our opportunity of a lifetime and we must seize it with both hands," Alex Salmond, Scotland's 59-year-old nationalist leader, told hundreds of supporters who waved the white on blue Scottish flag and chanted "Yes we can."

"Scotland's future must be in Scotland's hands," Salmond said in Perth, a city in eastern Scotland 740 km north of London.

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 them are too tight to be undone.

But with a mix of shrewd calculation and nationalist passion, Salmond has hauled the "Yes" campaign from far behind to within a few percentage points of winning his dream of an independent Scotland.

Facing the biggest internal threat to the United Kingdom since Ireland broke away nearly a century ago, Britain's establishment - from Prime Minister David Cameron to corporate bigwigs and the princes of pop culture - have united in a last-ditch effort to convince Scots that the United Kingdom is "Better Together".

Cameron's job could be on the line if Scotland breaks away, but the 47-year-old prime minister has conceded that his privileged English background and Conservative politics mean he is not the best person to win over Scots.

That has left the leadership of the unionist case in the hands of the opposition Labour party, winner of 41 Scottish seats in the 2010 British election and the only party with the local support capable of checking the secessionist Scottish National Party.

Former Labour 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".

In the event of a vote for independence, Britain and Scotland would face 18 months of talks on how to carve up North Sea oil and what to do about European Union membership and Britain's main nuclear submarine base.

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.

One poll, from Panelbase, showed support for independence had slipped to 48% from 49%, while YouGov, which had the biggest sample of the campaign, had support for independence unchanged at 48%.

Electoral officials said the result of the vote 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 Labour supporters go could be decisive.