Obama jumbled his words as he welcomed guests to the White House to observe the Mexican holiday, sending the crowd into laughter before he referred to the day correctly.
"Welcome to Cinco de CuatroCinco de Mayo at the White House," said Obama, in what appeared to be an attempt to note they were celebrating on the fourth of May instead of the fifth.
Cinco de cuatro means "five of four" in Spanish.
"We are a day early, but we always like to get a head start here at the Obama White House," he said.
During the presidential campaign, Obama acknowledged his Spanish skills weren't great.
"My accent's always been good," he said. "It's just that I only know 15 words."
The holiday, which marks the Mexican troops' defeat of the French on May 5, 1862, was overshadowed by a swine-flu outbreak that started in Mexico and has spread around the world.
Obama pledged to work with Mexican officials to fight the swine flu and drug wars, using the early Cinco de Mayo celebration to underscore the challenges facing the neighboring countries.
"I know it's a tough time, on both sides of the border," Obama told lawmakers and other guests.
The president said the United States would "stand side by side" with Mexican President Felipe Calderon and the people of Mexico to overcome hardships, including an economic downturn that has hit both countries.
"One thing we know: Good neighbors work together when faced with common challenges," Obama said.