Malia Obama was spotted letting loose over the weekend with friends at the annual Lollapalooza music festival in her hometown of Chicago.

President Obama's oldest daughter could be seen twerking and grinding with a few gal pals on Sunday while enjoying a performance from rapper Bryson Tiller.

Malia, who was wearing a midriff-baring tube top and pair of cutoff jean shorts, even posed for a few photos while she danced.

The 18-year-old had some fun on Friday as well when she and her friends caught rapper Mac Miller's set, with the teenager photographed as she playfully lifted up her skirt while dancing at one point to reveal a pair of boy shorts underneath.

Malia did not get too crazy however, and was accompanied to the festival every day with her Secret Service detail, who stood out slightly in the sea of teenagers.

Scroll down for video

Got the moves: Malia Obama attended the Lollapalooza music festival in Chicago from Thursday through Sunday

Dancing queen: On Sunday, she was spotted twerking and grinding with friends (above) while they listened to rapper Bryson Tiller

Pose: Malia, who was wearing a midriff-baring tube top and pair of cutoff jean shorts, even posed for a few photos while she danced

Malia was also spotted dancing up a storm with her friends on Thursday night, catching a performance from Norwegian DJ Cashmere Cat at around the same time Hillary Clinton was preparing to take the stage and accept her party's nomination for president in a historic moment for the country.

Her presence was not required at the Democratic National Convention for the first time since her father became the Democratic nominee back in 2008, and the recent high school graduate seemed to be taking full advantage of this by skipping out on the scene in Philadelphia to head to Chicago.

This is not Malia's first trip to Lollapalooza, having been spotted at the festival back in 2014 as she took in Chance the Rapper's set.

Malia is currently taking a gap year after making the decision to push back her acceptance to Harvard University by one year as her family prepares to transition out of the White House and back into public life.

President Obama shared how difficult it was to sit through the ceremony during a speech he delivered a few days later at the United States of Women Summit.

'Some of you may know that on Friday, my elder daughter Malia graduated from high school. And I sat in the back and wore dark glasses,' said President Obama.

'And I only cried once, but it was, I made this weird sound because I was choking back, and people looked at me. People sitting in front of us turned back, and then I suppressed it.'

The First Lady was also at the event, and spoke about her daughters growing up in the White House during what was billed as an 'armchair conversation' with Oprah Winfrey.

'So you remember Malia and Sasha were little itty-bitties when we came into office. I mean, it still moves me to tears to think about the first day I put them in the car with their Secret Service agents to go to their first day of school. And I saw them leaving, and I thought, "What on earth am I doing to these babies?'' the First Lady said to Winfrey.

'So I knew right then and there my first job was to make sure they were going to be whole and normal and cared for in the midst of all this craziness. And then I started to understand that if I was going to protect them, I had to, number one, protect myself and protect my time.'

The family will be staying in Washington DC rather than returning to their native Chicago when President Obama leaves office they have revealed, at least until Sasha completes high school.

Video courtesy: WGCI.com

Feel the beat: The 18-year-old was also spotted twerking on Friday while watching a performance from Mac Miller (above)

Letting loose: Malia also playfully lifted up her skirt while dancing at one point to reveal a pair of boy shorts underneath (above)

Malia has already built up an impressive resume thanks to summer internships on the set of the Halle Berry television series Extant and Lena Dunham's HBO series Girls.

It seems though that she will be taking a break from the grind of show business this summer.

Malia, who now has only five months left in her second term as first kid, has not spoken publicly about who she plans to vote for come November, when the 18-year-old will cast her ballot for the first time in her life.

Clinton however very publicly voiced her admiration for Malia and Sasha along with their parents during a campaign stop in North Carolina where she was joined by President Obama.

'I happen to think those two young women may be the most impressive accomplishment of all,' Clinton said while speaking about Obama's legacy.