Knaresborough is served by Northern Rail and is on the Leeds to York via Harrogate line. If you get on a Knaresborough bound train in York the announcment will be that you are travelling on a Leeds bound train but if you get on in Leeds the announcement will be you are on a Poppleton bound train even though it is going to York. This is to ensure Leeds to York passengers take the more direct and faster mainline route.
Knaresborough station is a beautiful station with flower baskets in the summer but it has no staff and no refreshments or toilets - there is however a pub/restaurant, The Mitre, next to the station with these facilities.
The oldest and most unpopular trains in England travel this line but journey times are short and old trains are better than no trains at all.
As Knaresborough is situated on the railway line between Leeds & York, it's so easy to get there from both cities. I travelled from Leeds, during the daytime there are 2 trains an hour & the journey took 45 minutes. Coming by train from Leeds also means that on entering Knaresborough you get to cross the magnificent viaduct.
The website below will give you local train times for Knaresborough from across the north of England.
From Leeds or York (both mainline stations), get the train to Knaresborough. It is usually the Harrogate train, but double check especially late at night or early in the morning, as they don't always go all the way!