<P> During the early stages of production, Carter founded Ten Thirteen Productions and began to plan for filming the pilot in Los Angeles . However, unable to find suitable locations for many scenes, he decided to "go where the good forests are" and moved production to Vancouver . It was soon realized by the production crew that since so much of the first season would require filming on location, rather than on sound stages, a second location manager would be needed . The show remained in Vancouver for the first five seasons; production then shifted to Los Angeles beginning with the sixth season . Duchovny was unhappy over his geographical separation from his wife Téa Leoni, although his discontent was popularly attributed to frustration with Vancouver's persistent rain . Anderson also wanted to return to the United States and Carter relented following the fifth season . The season ended in May 1998 with "The End", the final episode shot in Vancouver and the final episode with the involvement of many of the original crew members, including director and producer R.W. Goodwin and his wife Sheila Larken, who played Margaret Scully and would later return briefly . </P> <P> With the move to Los Angeles, many changes behind the scenes occurred, as much of the original The X-Files crew was gone . New production designer Corey Kaplan, editor Lynne Willingham, writer David Amann and director and producer Michael Watkins joined and stayed for several years . Bill Roe became the show's new director of photography and episodes generally had a drier, brighter look due to California's sunshine and climate, as compared with Vancouver's rain, fog and temperate forests . Early in the sixth season, the producers took advantage of the new location, setting the show in new parts of the country . For example, Vince Gilligan's "Drive", about a man subject to an unexplained illness, was a frenetic action episode, unusual for The X-Files largely because it was set in Nevada's stark desert roads . The "Dreamland" two - part episode was also set in Nevada, this time in Area 51 . The episode was largely filmed at "Club Ed", a movie ranch located on the outskirts of Lancaster, California . </P> <P> Although the sixth through ninth seasons were filmed in Los Angeles, the series' second movie, The X-Files: I Want to Believe (2008), was filmed in Vancouver, According to Spotnitz, the film script was written specifically for the city and surrounding areas . The 2016 revival was also shot there . </P> <P> The music was composed by Mark Snow, who got involved with The X-Files through his friendship with executive producer Goodwin . Initially Carter had no candidates . A little over a dozen people were considered, but Goodwin continued to press for Snow, who auditioned around three times with no sign from the production staff as to whether they wanted him . One day, however, Snow's agent called him, talking about the "pilot episode" and hinting that he had got the job . </P>

When did x files start filming in la
find me the text answering this question