Miley Cyrus had a frightening moment with a fan in Barcelona over the weekend.

RELATED: Miley Cyrus Releases ‘She Is Coming’

The singer and her husband Liam Hemsworth were leaving their hotel in the Spanish city and were met by a swarm of adoring fans.

But as captured in a video posted to social media, one man actually grabbed Cyrus, put his arm around her neck, and then tried to kiss her as she pulled away.

Cyrus and another person, who appears to be a security guard, pushed the man away from her.

After the commotion, Hemsworth turned around and put his arm around Cyrus’ shoulder before they made their way into the waiting SUV.

RELATED: Liam Hemsworth Is The Perfect Instagram Husband As He Praises Miley Cyrus

Cyrus was in Barcelona to perform at the Primavera Sound Festival.

While Cyrus’ management had no comment when ET Canada reached out, on Tuesday she addressed the incident on Twitter, declaring that no matter who a woman is or what she’s wearing, it’s never okay for a woman to be “grabbed without her consent.”