where did anakin live before he met qui-gon
Darth Vader Anakin first appears in the prequel trilogy in Star Wars: Episode I – The Phantom Menace, which takes place 32 years before the original Star Wars, as a nine-year-old slave[63] living on the planet Tatooine with his mother Shmi. Anakin was conceived without a father and he can foresee the future. Also a gifted pilot and mechanic, Anakin has built his own protocol droid, C-3PO. Jedi Master Qui-Gon Jinn meets Anakin after making an emergency landing on Tatooine. Qui-Gon senses Anakin's strong connection to the Force and becomes convinced that the boy is the "Chosen One" of Jedi prophecy who will bring balance to the Force. After winning his freedom in a podrace, Anakin leaves for Coruscant to be trained as a Jedi, but is forced to leave Shmi behind. During the journey, Anakin forms a bond with Padmé Amidala, the young queen of Naboo. Qui-Gon asks the Jedi Council for permission to train Anakin, but they sense fear in the boy and refuse. Eventually, Anakin helps thwart the Trade Federation's invasion of Naboo by destroying their command ship. After Qui-Gon is killed in a lightsaber duel with Sith Lord Darth Maul, Obi-Wan promises to train Anakin, with the Council's reluctant approval.[62] Supreme Chancellor Palpatine (the future Emperor) later befriends Anakin and tells him that he will watch the boy's career "with great interest".
Skywalker family Star Wars: Episode II – Attack of the Clones reveals that, in Anakin's absence, Shmi has married Cliegg Lars, becoming the stepmother of Owen. Owen tells Anakin they are stepbrothers. Owen later marries Beru Whitesun. As a Jedi Knight, Anakin secretly marries Padmé Amidala.