President Barack Obama Helps 'Hamilton' Star Lin-Manuel Miranda Freestyle Rap in the Rose Garden

This video is unavailable because we were unable to load a message from our sponsors.

If you are using ad-blocking software, please disable it and reload the page.

President Barack Obama joins in on the beat!

The cast of Hamiltonwere invited to the White House on Monday and the Broadway show's star and writer, Lin-Manuel Miranda, wasted no time getting the Commander-in-chief involved in a little freestyle rap session.

EXCLUSIVE: Hamilton   Cast Celebrates GRAMMY Win by Raising a Glass to Freedom

"OK, drop the beat," Obama instructed the drummer before assisting Miranda in his freestyle rap by presenting him with cue cards of political terms and topics to include in his rhyme.

"Constitution, the POTUS, I'm freestylin'. You know this," the 36-year-old actor declared. "This is so fun. POTUS is holding up the signs, I'm not done." Miranda's rap was seemingly flawless, and he was able to use all the words thrown at him, including carbon footprint, Supreme Court, Congress, immigrants and Oval Office.

EXCLUSIVE: Hamilton Stars Talk Worst Audience Experience

Miranda's Hamilton musical -- which packs an intense history lesson into two acts worth of rapid-fire raps and beautiful harmonies -- has become one of the hottest tickets on Broadway. In addition to the Obamas, Oprah Winfrey, Beyonce, Matthew McConaughey, James Corden, Selena Gomez, Cate Blanchett and Emily Blunt, to name a few, have all scored a ticket to the most popular performance about the "$10 founding father without a father."

Miranda spoke with ET exclusively about political performance, touting, "[Broadway] is looking more and more like America this season, which is really exciting."

Related Gallery