As the speed of the plane increases — combined with the new angle of the airflow passing over the wings — the lift generated by the wings reaches a critical point where the aircraft can leave the ground. As this happens, the pilot then retracts the landing gear to improve the aerodynamics of the aircraft.