The Black Swan at Oldstead, a quaint, family-run pub in North Yorkshire, was named the world's top-rated restaurant, according to diners.

The Travelers' Choice restaurant awards are generated using an algorithm that takes into account the quantity and quality of reviews for restaurants around the world over the course of a year.

This year marks the first time a UK restaurant has topped the world category since the awards began in 2012.

It also signals the end of Martín Berasategui's two-year reign — he has held the top spot with his three-Michelin-starred Lasarte restaurant in Barcelona since 2015. This year, he slipped to fifth place.

The Banks' triumph was closely followed by Raymond Blanc with his Belmond Le Manoir Aux Quat'Saisons in New Milton, Oxfordshire, which came in at second place.

The Black Swan is run and owned by brothers Tommy and James Banks and their family.

The tasting menu costs £95 ($125), and the tasting drinks package will set you back a further £60 ($79), with an optional £15 ($20) extra for cheese.

Tommy Banks was the youngest British head chef ever to win a Michelin star four years ago at the age of 24.

The Black Swan

Take a look at some of the restaurant's dishes below, including this succulent lamb ...

The Black Swan

... lobster ...

The Black Swan

... scallops ...

The Black Swan

... and strawberries for dessert.

The Black Swan

This is the complete list of the 10 best restaurants in the world, according to TripAdvisor: