Like Alive in Joburg, the short film on which the feature film is based, the setting of District 9 is inspired by historical events during the apartheid era, particularly alluding to District Six, an inner-city residential area in Cape Town, declared a "whites only" area by the government in 1966, with 60,000 people forcibly removed to Cape Flats, 25 kilometers away.