Edinburgh Castle is best reached on foot, as it is located on Castle Rock in the center of the city. Visitors can walk up the Royal Mile, the main street of the historic Old Town, to reach the castle. Alternatively, visitors can take a cab or use public transportation, as buses and trains stop near the castle entrance. If you use public transportation, however, be prepared for a steep climb.