Let's be honest: the train route from Lebanon to Yosemite described in some guides is a geographical fever dream—Beirut to Istanbul to Paris to Aix-en-Provence to Lyon to Geneva to Zurich to Munich to Vienna to Budapest to Belgrade to Sofia to Istanbul (again?) to Ankara to Samsun to Trabzon to Kars to Yerevan to Tbilisi to Gyumri (back to Yerevan?) to LAX. It's a Eurasian zigzag that doesn't exist.
Beirut (BEY) → San Francisco (SFO) or Los Angeles (LAX) is your only practical option. Expect 14–18 hours with connections (typically via Istanbul, Dubai, Doha, or European hubs). Cost: $800–$1,500+ depending on season.
From SFO: rent a car, drive 200 miles (3.5–4 hours) via CA-120 or CA-140 into Yosemite Valley. The Tioga Pass (CA-120 east) closes in winter—check conditions.
From LAX: 300+ miles, 5–6 hours via CA-99 and CA-41. More reliable year-round access.
From SFO: Amtrak to Merced + YARTS bus to Yosemite Valley (6–7 hours total). From Fresno (FAT airport): YARTS bus direct (3.5 hours). No direct bus from LA—requires multiple transfers.
Forget the trans-Eurasian railway odyssey. Fly, drive, hike. Yosemite's granite walls are worth the real journey.