Mark Zuckerberg originally created Facebook to rate his female Harvard university classmates after one of them rejected him.
But his bad luck with dating would turn around shortly afterwards, when he met Priscilla Chan in the queue for the toilet at a house party in 2003.
Mark's fraternity, Alpha Epsilon Pi, was hosting the party and Priscilla, who was in her second year of university, was on the guestlist.
Because of the furore surrounding Facemash, the earliest version of Facebook where users would upvote or downvote their female peers, Mark was convinced he was about to be kicked out of Harvard - so he was doubly keen to get a girlfriend before that happened.
"I'm going to get kicked out in three days, so we need to go on a date quickly," Mark admitted he told Priscilla.
But biology student Priscilla was instantly taken with "nerdy" Mark - and the rest was history.
"He was this nerdy guy who was just a little bit out there," she told The New Yorker.

Do you enjoy reading about celebrities? Sign up for all the best celeb news from the Mirror here .
"I remember he had these beer glasses that said 'pound include beer dot H.' It’s a tag for C++. It’s like college humour but with a nerdy, computer-science appeal."
The brainy duo went on their first date, though Priscilla was initially "appalled" by Mark's admission that he would " rather go on a date with [her] than finish his take-home midterm".
"The type-A first child in me was appalled," she joked.
Mark dropped out of Harvard soon after to focus on growing Facebook, which Priscilla, 36, was one of the first people to join.
The couple moved to California and Priscilla attended medical school, renting an apartment where Mark would visit her at the weekend.
Even at this early stage in their relationship, Mark, 37, was working long hours while Facebook exploded across the world, and he had limited free time.
So they created a strict rule which they still adhere to to this day - a minimum of 100 minutes of alone time together per week not at Facebook's headquarters, and a weekly date night.


During those dates, Mark has revealed he and his wife will go for walks together, go rowing (but only in separate boats) and play board games.
Mark married Priscilla in 2012 in a surprisingly low-key and frugal wedding - the ring only cost $25,000, which is a drop in the ocean for a multi-billionaire, while the food was sourced from local restaurants and Green Day frontman Billie Joe Armstrong performed for free.
The Facebook CEO has said that, even with the billions of dollars he has made, their relationship was the greatest thing to come from his invention.
"Without Facemash, I wouldn’t have met Priscilla," he said in his Harvard commencement address in 2017.
"She’s the most important person in my life, so you could say it was the most important thing I built in my time here."
And former paediatrician Priscilla is a big part of Mark's business decision-making, including when he turned down a $1billion offer from Yahoo to buy Facebook in 2006.
"I remember we had a huge conversation over the Yahoo! deal," Priscilla explained to the New Yorker.

"We try to stick pretty close to what our goals are and what we believe and what we enjoy doing in life - just simple things."
In their time together, Priscilla and Mark have welcomed two children, one in 2015 and the second in 2017.
When they announced their first pregnancy, they opened up on what a difficult road it had been with Priscilla sadly suffering three miscarriages along the way.
"It's a lonely experience," Mark wrote on Facebook.
"We hope that sharing our experience will give more people the same hope we felt and will help more people feel comfortable sharing their stories as well."
They named their first daughter Max, short for Maxima, and two years later welcomed their second daughter, August, named in honour of her birth month.
Forever dedicated to his work, Mark even attempted to pick Priscilla's brains for help writing a letter while she was giving birth.
They were launching their charity, the Chan Zuckerberg Initiative, when Max was born.
"I was in the hospital, in active labor, and Mark has a copy of the letter he wanted me to look at. ‘Does this make sense? Should I move this paragraph up?'" Priscilla recalled to Medium.
"And I said — ’Honey, we’re done. The baby is here. The letter is complete.'"
Over the years, Mark and Priscilla have accumulated ten multi-million dollar properties, including hundreds of acres of land on Hawaii which Mark purchased with the intention of simply "preserving its beauty".
Their main residence is a 5,000-square-foot estate in Palo Alto, California, where Mark spends a reported £17million a year on security due to threats on his life which escalated during the Cambridge Analytica scandal in 2019.
Like many of us, Mark uses his own Facebook account to publicly declare his love.
In 2014, he wrote a gushing tribute to Priscilla to mark the 11-year anniversary of the day he first laid eyes on her.
"I met an amazing girl on this day exactly 11 years ago," he penned, alongside a photo with her.
"Priscilla, thank you for keeping me grounded, and for helping me keep my sense of wonder about the world as we grow together."
Do you have a story to share? We want to hear all about it. Email us at yourmirror@mirror.co.uk