What is the cause of the first moon landing?

As John Kennedy set the target in 1961 that America must land a man on the moon and bring him back safely back to earth, the space race had truly begun. That date to finish it was December 31 1969.