Watch: Black boy challenges US cop to dance-off

A video of a young African-American boy and a sheriff's deputy having a dance in a North Carolina car park has gone viral in the US.

Nash County Sheriff's Office posted the footage of the dance-off on its Facebook page two days ago, and it has since been shared more than 6000 times and watched more than 300,000.

The young boy in the video, Jason, is said to have challenged Deputy Cody Williams to the dance-off, which was accompanied by popular hip-hop song 'Juju On That Beat' by Zay Hilfigerrr.

The video is particularly poignant given mounting racial tension in the US, with Black Lives Matter protests held largely as a result of perceived unjust violence by police against African-Americans.

The moment was captured by Capt Eddie Moore, who said Jason approached them and began a conversation when they had stopped to fix Deputy Williams' vehicle.

"We want people to know that we're a part of the community and no different than they are," Moore told ABC News.

"It's important to us to foster positive relationships with the community and that they know we're here for a good reason."