The former pro soccer player joined Instagram on the same day, and shared several photos from his family getaway, reported Us magazine.
"Good morning and hello! It's great to finally be on Instagram, been a long time coming but I can't wait to start sharing all my special moments with you," Beckham captioned his first pic.
"Thank you for all your birthday messages so far. Looking forward to a great day with friends and family," he added.
Sharing a snap with his eldest son Brooklyn, 16, he continued, "I feel a very lucky man. Here's a photo with @brooklynbeckham the real boss of the family!"
"So excited to be spending this special day with David and the kids in Marrakech!," she wrote.