To reach Nainital by train, the nearest railway station is Kathgodam, which is approximately 34 kilometers away. Kathgodam is well-connected to major cities like Delhi, Kolkata, and Lucknow. From Kathgodam, you can hire a taxi or take a shared cab or bus to reach Nainital, which is around a one-hour scenic drive through the hills.