In The Empire Strikes Back, Luke Skywalker is directed by the ghost of Obi-Wan Kenobi, to seek Yoda on Dagobah. After training with Yoda, Skywalker leaves Dagobah early to rescue his friends Han Solo, Princess Leia, and Chewbacca, whom he senses are in danger on the planet Bespin. Skywalker also briefly returns to Dagobah in Return of the Jedi, in which he has a final conversation with Yoda before Yoda's death. Luke then speaks to Obi-Wan Kenobi's ghost about the conflicting stories of Luke's parentage.
Revenge of the Sith did not show how Yoda came to the planet in its theatrical version; but this was portrayed in a deleted scene that George Lucas says was removed so that Revenge would not have "too many endings". The scene of Yoda arriving on Dagobah was rumored to be reinserted into the DVD release of the film in November 2005; however, the film's theatrical cut has been transferred to DVD intact, with the "Exile to Dagobah" scene featured in the "Deleted Scenes" section on Disc II instead. In the novel of the movie, it is stated that Yoda went to Dagobah in an escape pod launched from Bail Organa's starcruiser.
In the Expanded Universe, a Jedi of Yoda's race confronted a BpfasshiDark Jedi on Dagobah, some millennia before the events in The Empire Strikes Back, and the cave where the Dark Jedi died became strong in the dark side of the Force. This is a retcon of an earlier idea that Yoda himself slew a Dark Jedi there, because this explanation was contradicted by the canonical animated series, wherein the cave was already cursed. During the events of Star Wars Jedi Knight: Jedi Academy (for the PC), a team of Jedi Knights from the New Jedi Order visit Dagobah, to find the cave drained of its former menace.
After the events of Episode VI, the New Republic founds a military base on one of the greatest mountains of the planet, named 'Mount Yoda' after Jedi Master.