The alien invasion or space invasion is a usual part of science fiction stories and film, in which extraterrestrials invade Earth either to exterminate and supplant human life, enslave it under a colonial system, to harvest humans for food, steal the planet's resources, or destroy the planet altogether.
The invasion scenario has been used as an allegory for a protest against military hegemony and the societal ills of the time. H.G. Wells' novel The War of the Worlds extended the invasion literature that was already common when science fiction was first emerging as a genre.
Prospects of invasion tended to vary with the state of current affairs, and current perceptions of threat. Alien invasion was a common metaphor in United States science fiction during the Cold War, illustrating the fears of foreign (e.g. Soviet Union) occupation and nuclear devastation of the American people. Examples of these stories include the short story The Liberation of Earth (1950) by William Tenn and the film The Invasion of the Body Snatchers (1956).
In the invasion trope, fictional aliens contacting Earth tend to either observe (sometimes using experiments) or invade, rather than help the population of Earth acquire the capacity to participate in interplanetary affairs. There are some notable exceptions, such as the alien-initiated first-contact scenarios in The Day the Earth Stood Still (1951), Star Trek: First Contact (1996), and Arrival (2016). A trope of the peaceful first-contact is humanity attaining a key technological threshold (e.g. nuclear weapons and space travel in The Day the Earth Stood Still or faster-than-light travel in First Contact), justifying their initiation into a broader community of intelligent species.