The rebel base in A New Hope was formerly a Sith temple thousands of years previously, and later Luke used it as the Jedi Academy when he started the New Jedi Order.