This is the dramatic moment one of the Queen's Guards scared off a dancing tourist outside St James's Palace by shouting at him: 'Haw! Get yersel' away.'

The soldier, who is thought to be part of the Scots Guard regiment, yelled the command in broad Scottish slang leaving viewers baffled.

At the beginning of the video - which has racked up thousands of views - a man can be seen dancing on the spot outside the royal palace in London.

Suddenly one of the guards in the background wearing a distinctive bearskin hat and grey winter tunic shouts at the tourist ordering him to stop.

At the beginning of the video a man, pictured above centre, can be seen dancing on the spot outside St James's Palace in London

Suddenly one of the guards in the background, above left, shouts at the tourist ordering him to stop

He says: 'Haw, get yersel' away, ye came and ye done this yesterday anaw, do him wan, turn the camera aff.'

That roughly translates as: 'Listen, get yourself away. You came and did this yesterday too. Do him one, turn the camera off.'

The embarrassed tourist can be seen in the video quickly halting his dance and shuffling away.

Commenters have applauded the guard for telling the man to stop dancing with one saying: 'Those Guards are the first line of defence for the Crown and they see thousands of very strange people haunting London every year.

The guard, above left, shouts: 'Haw, get yersel' away, ye came and ye done this yesterday anaw, do him wan, turn the camera aff'

The embarrassed tourist can be seen in the video quickly halting his dance and shuffling away

Commenters have applauded the guard, above left, for telling the man, above right to stop dancing with one saying: 'Those Guards are the first line of defence for the Crown and they see thousands of very strange people haunting London every year'

'This one yelled "get yersel' away ... Or in Scottish military parlance: "f*** off and turn the camera off". Quite right too.'

Clad in their distinctive tunics and bearskins hats, the soldiers of the Queen’s Guard are charged with protecting official royal residences.

The units, manned by fully-trained, serving soldiers, have more than 350 years of history and have defended monarchs since Charles II took the throne after the English Restoration in 1660.

There are thought to be guidelines in place for guardsmen to deal with nuisances, which begins with stamping their feet and shouting.

Raising a rifle is considered a 'final warning', after which the guardsmen is allowed to detain the person in question.