Lin-Manuel Miranda, the rapping high school history teacher of your dreams and this week's SNL host, stopped by The Tonight Show and genuinely blew Jimmy Fallon's mind with his certified genius freestyling skills.

The Tonight Show Starring Jimmy Fallon jimmy fallon harry potter tonight show lin-manuel miranda

Miranda and Black Thought of The Roots engaged in a rap battle that's way more civilized than the ones between Alexander Hamilton and Thomas Jefferson, and featured more Mr. Robot and Harry Potter than any of the cabinet meetings featured in Miranda's hit musical, Hamilton.