The landing gear's function seems obvious, but it actually serves the following two purposes:
Landing gear is either retractable (retracts into the airplane during flight) or fixed (stays extended during flight).
The Empennage The Fuselage The Powerplant The Wing