The two sat down for a round of the classic game to promote Obama's "My Brother's Keeper" initiative – launched in 2014 to help disadvantaged youth, particularly boys and young men of color.
"I gotta get serious, hold on for one second," the NBA star says in an Instagram clip before popping in a mouth guard.
The president took a moment to compose himself as well: "Hold on a second, I gotta get my game face on," he said.
The photo showed Obama raising both fists in the air as Curry buried his head in his hands.
"Two super competitors: POTUS and @stephencurry30," the caption read in part.
The White House took to Twitter to share some outtakes from the shoot.
In the full-length version of the video, an ad calling for men to become mentors, the two engaged in a series of mentor-mentee activities.
Obama helped Curry with his resume – he advised the NBA star to remove the basketball clip art – showed him how to activate a paper mache volcano and even helped Curry perfect his jump shot.