Madrid is landlocked, but two major seaports serve as its primary maritime gateways:
Valencia is generally preferred for most Spanish trade due to shorter distance and dedicated high-speed rail freight links. Lisbon offers Atlantic access and is used for specific transatlantic routes.