Former U.S. President Barack Obama showed 30 Chicago teens that he still has some on-court skills — as well as a deep appreciation for the Windy City and its residents!

The 60-year-old garnered a fair amount of attention on Thursday after popping into a workshop at the South Side YMCA. The event was organized in a collaborative effort between the Chicago Bulls and Pep Rally Takeover — an Obama Foundation community partner.

The workshop's participants included South Side YMCA basketball team members, Simeon Career Academy girls' basketball team members and CHAMPS Male Mentoring program members.

NBA star Patrick Williams was also present at the event, along with some coaches and the mascots for the Chicago Bulls and Chicago Sky (Benny the Bull and Sky Guy, respectively).

It turns out that Obama, who's working on the upcoming Obama Presidential Center in South Side Chicago, had some free time while nearby and wanted to check out the workshop as well!

After walking in and greeting the young participants, Obama acknowledged the positive impact places like the South Side YMCA have on the larger community. He also proceeded to try and shoot some hoops, though he humorously failed at his first two attempts. However, he did make the third basket — so take that, haters!

"Former President @barackobama dropped in to offer some words of encouragement to Y youth who share his passion for the game," the South Side YMCA wrote on Instagram. "He also expressed his support for @ymca's work as a leading community provider of youth services and for helping to strengthen youth including on the South Side."

Obama also acknowledged the visit on Twitter earlier today.

"I heard the @ChicagoSky and @ChicagoBulls were visiting the South Side YMCA, so I decided to drop by, too," Obama tweeted. "It's always fun to meet young people who are learning to love the game."

This visit comes as Barack and Michelle Obama return to Chi-town, where they are on a mission to support "the people and programs taking on some of the biggest issues in the [Chicago] community."