The main purpose of the Mercury program was to learn more about the effects of spaceflight on humans and to gain more technological experience.