The best way to get to Edinburgh Castle is to take public transport to the city and to walk up the Royal Mile to the castle. If you're arriving by train to Waverley station, follow exit signs for Edinburgh Castle. There are a lot steps to climb and steep lanes to walk up so take your time.