Take the cable car or the funicular to Montjuic Hill, followed by a scenic walk to reach Montjuic Castle.