There is scheduled maintenance required at various intervals (normally measured in hours, with some possibly tied to cycles). These include what are known as
A, B, C, and D checks. Some of these might require weeks. Planes also occasionally get interior refurbs, which may or may not be done during the checks mentioned above.