"Empire of the Sun" was filmed at Elstree Studios in the United Kingdom, and on location in Shanghai and Spain. Principal photography began on 1 March 1987, and lasted for 16 weeks. The filmmakers searched across Asia in an attempt to find locations that resembled 1941 Shanghai. They entered negotiations with Shanghai Film Studios and China Film Co-Production Corporation in 1985. After a year of negotiations, permission was granted for a three-week shoot in early March 1987. It was the first American film shot in Shanghai since the 1940s. The Chinese authorities allowed the crew to alter signs to traditional Chinese characters, as well as closing down city blocks for filming. Over 5,000 local extras were used, some old enough to remember the Japanese occupation of Shanghai 40 years earlier. Members of the People's Liberation Army played Japanese soldiers. Other locations included Trebujena in Andalusia, Knutsford in Cheshire and Sunningdale in Berkshire. Lean often visited the set during the England shoot.