Spacecraft components need to fulfill requirements for low friction and long service life in alternating atmospheric-vacuum environments. In this study, based on the lubricating characters of LaF3-Ti-MoS2 in vacuum and Ti-DLC in the atmospheric environment, LaF3-Ti-MoS2/Ti-DLC(MTLC) multilayer films are designed and self-formed by controlling the residence time of the sample at the target position in magnetron sputtering process. The effect of rotational speed on the microstructure, mechanical properties, and tribological performance of the MTLC films are systematically investigated. The multilayer structure exhibits excellent mechanical properties at the rotational speed of 0.5 rpm, which allows the MTLC films to achieve a lifespan exceeding 2 × 105 laps in alternating atmospheric-vacuum environments. Transmission electron microscope(TEM) results suggest the environmentally adaptive mechanism is that the LaF3-Ti-MoS2 layer acts effective in vacuum and the Ti-DLC layer acts effective in atmosphere. This dynamic interplay between the layers contributes to the prolonged lifespan of the films in these alternating environments, highlighting their potential for various space applications.