Beckham, 39, who has launched his first collection of swimming trunks for the high street brand, said Sean Connery in the first ever Bond film of 1962 inspired him to create the new line, reported Contactmusic.
"Sean Connery in 'Dr No' was definitely on the reference board when we started. Old bond movies were a big reference. I have a great relationship with H&M and we're always looking for something else we can be successful in.
"The bodywear range has been great since the launch in 2012, so when the swimwear idea came up, we were all over it. The board shorts are something I think will go down well - everyone likes a comfortable pair of shorts. Not everybody likes the tight ones," he said.
"I've never been allowed to surf. My kids do it, but I wasn't allowed to do water sports at all while I was playing. I could do it now, but I wont, like, I'm slightly worried about sharks. I have tried it a couple of times though," he added.