So basically I was trynna get to this girl but the police told me to go home so we made this deal if i win u leave but if u win I step andddddd she step ✌️

Posted by Adore Liyah on Tuesday, October 27, 2015

A cop showed up in a neighborhood to break up a group of fighting teens. Instead, she showed off some good dance moves.

Police officers in Washington, D.C. went to break up two groups of teens that were fighting earlier this week. One of the officers went to a group of lingering teens and asked them to leave the area.

That's when one of the teens, 17-year-old Aaliyah Taylor, walked right up to the officer and began playing the popular song "Watch Me (Whip/Nae Nae)" on her phone. The teen from Ballou High School then start dancing to the song in front of the officer.

Instead of getting upset, the officer laughed and said she had better moves than the teen. From there the cop proposed a dance-off: if she won, the group would leave, if the teen won they could stay.

What happened next was an awesome dance battle that was caught on camera. Teens surrounding the two dancers recorded the dance-off and it has since gone viral.

Even President Obama tweeted about the dance battle, saying it was "a great example of police having fun while keeping us safe." The video has been viewed over a million times.

After the video went viral, the teen Aaliyah Tyler commented on how the dance-off changed her perception of police officers,

“Instead of us fighting, she tried to turn it around and make it something fun. I never expected cops to be that cool. There are some good cops.”

Check out the video above.