The Jewish people celebrate Passover as a commemoration of their liberation over 3,300 years ago by God from slavery in ancient Egypt that was ruled by the Pharaohs , and their birth as a nation under the leadership of Moses .