Thestar, 41, married Jose ‘Pepe’ Antonio Baston, the president of Televisa, in Mexico on May 21.
Beckham created Longoria’s silk crepe gown for the ceremony, as well as another dress for the post-dinner celebrations and a third for a civil ceremony the day before.
The former Spice Girl, 42, was also a witness at the civil ceremony.
During an exclusive interview withmagazine, Longoria explained how she came to have “a Victoria Beckham weekend”.
She said: “I asked Victoria to do my dress because I wanted it to be special and made with love — and I knew that Victoria would make it with love.
“Victoria was one of my witnesses too. She signed the paper that says I was here —so it was a Victoria Beckham weekend.”
The actress-turned-producer added: “She was the best, sweetest person to have there on this day.
“Not only did she do my wedding dress but she’s one of my best friends so for her to be there was so special.”
The two women became close when the Beckhams lived in Los Angeles while David was playing for Major League Soccer team LA Galaxy. This is Longoria’s third marriage.