His father taught him Atari BASIC Programming in the 1990s, and later hired software developer David Newman to tutor him privately.
Hasit explains: We had books called Face Books, which included the names and pictures of everyone who lived in the student dorms.
At first, he built a site and placed two pictures, or pictures of two males and two females.
A short time later, he created a different program he initially called Facemash that let students select the best looking person from a choice of photos.
According to Arie Hasit, Zuckerberg's roommate at the time, "he built the site for fun".
Zuckerberg launched Facebook from his Harvard University dormitory room on February 4, 2004 with college roommates and fellow Harvard students Eduardo Saverin, Andrew Mc Collum, Dustin Moskovitz, and Chris Hughes.
The group then introduced Facebook to other college campuses.
He studied psychology and computer science and belonged to Alpha Epsilon Pi and Kirkland House.
In his sophomore year, he wrote a program that he called Course Match, which allowed users to make class selection decisions based on the choices of other students and also to help them form study groups.
Samyr Laine, a triple jumper representing Haiti at the 2012 Summer Olympics, shared a room with Zuckerberg during Facebook's founding.
"Mark was clearly on to great things," said Laine, who was Facebook's fourteenth user.
In addition, many students complained that their photos were being used without permission.