Farnham is a village and civil parish in the Harrogate district of North Yorkshire, England. It is situated immediately north of Knaresborough.