Star Wars Main Title
From Wookieepedia, the Star Wars wiki.
The Star Wars Main Title, also known as "Star Wars Main Theme", "Star Wars Theme" or simply "Star Wars", is the theme played at the beginning of all six Star Wars films. The film scripts refer to this opening theme as "war drums". It was composed by John Williams.
The Main Title segues directly into a theme created specifically for each film. These are: "The Arrival at Naboo" or "Boarding the Federation Battleship" (Star Wars Episode I: The Phantom Menace); "Ambush on Coruscant" (Star Wars Episode II: Attack of the Clones); "The Revenge of the Sith" (Star Wars Episode III: Revenge of the Sith); "Rebel Blockade Runner" (Star Wars Episode IV: A New Hope), which goes on to quote the ending of "Mars" from Gustav Holst's "The Planets"; "The Ice Planet Hoth" (Star Wars Episode V: The Empire Strikes Back); "Approaching the Death Star" (Star Wars Episode VI: Return of the Jedi).
The Main Title also occurs within the films themselves, notably as a faster, dramatic variant in The Phantom Menace, when Qui-Gon Jinn and Obi-Wan Kenobi fight B1 battle droids aboard Saak'ak, it also plays when the CIS and Republic armies charge towards each other in Attack of the Clones, during the chasm shootout in A New Hope, when Luke flees from the wampa in The Empire Strikes Back, and again when Luke fights Jabba the Hutt's henchmen over the sarlacc in Return of the Jedi. The only movie that lacks its appearance in-film is Revenge of the Sith for an unknown reason.
This theme is also played during the opening crawl of almost all Star Wars video games. Commonly they use the original version, segueing directly into "Rebel Blockade Runner". A notable exception is the opening crawl of Star Wars: TIE Fighter, which features a version of the Imperial March.
[edit] Canonicity
Leia Organa sings a song for the Life Day celebration in the Star Wars Holiday Special, very similar in tune to the Theme. This is a (superficial and semi-canonical) indication that Star Wars Theme perhaps exists in-universe. Similar indications exist with Imperial March (considered in The Paradise Snare to be the official in-universe martial anthem of the Imperial Navy) and Duel of the Fates (heard from ghastly voices in the Ice Crypt of Coruscant).

