The National Museum of Scotland overtook Edinburgh Castle as the most popular visitor attraction in Scotland last year, new figures have revealed.

In total, 1.81 million people visited the museum in Edinburgh, which opened ten new galleries in July 2016, a 15.5 per cent rise on the previous year.

Edinburgh Castle welcomed 1.77 million people, up 13.4% on 2015.

Visits to sites around the country rose for the third year running in 2016, according to figures from the Association of Scottish Visitor Attractions (ASVA).

Almost 30 million visits were made to 249 of its members' sites in Scotland in 2016, a rise of 6% on 2015 figures.

National Museums Scotland director Dr Gordon Rintoul said: "I am delighted that the latest ASVA visitor figures have confirmed the National Museum of Scotland's place as the most popular visitor attraction in Scotland.

"In addition, we recorded the highest-ever visitor numbers across all our sites with nearly 2.7 million visits."

Four other sites welcomed more than one million visitors each, with Kelvingrove Art Gallery and Museum and the Riverside Museum, both in Glasgow, drawing more than 1.25 million people each.

The Scottish National Gallery and St Giles' Cathedral, both in Edinburgh, drew 1.54 million and 1.17 million visitors respectively.

Eleven of the top 20 attractions were located in the capital, compared with nine in 2015.

Sites outside the top 20 also celebrated successes.

The Black Watch Castle & Museum in Perth and Kinross saw a 1,248% rise in visitor numbers, largely on the back of "Weeping Window", a sculpture featuring thousands of handmade ceramic poppies commemorating those who died in the First World War.

Last year, 195,301 people visited the museum, up from 14,483 visitors in 2015.

In the Highlands, interest generated by the Outlander TV series helped boost visitor numbers at the Culloden Battlefield Visitor Centre, which rose 21% from 115,923 in 2015 to 139,691 last year.

Culture Secretary Fiona Hyslop said: "It is fantastic that Scottish visitor attractions recorded another successful year in 2016, with almost 30 million visits to some of Scotland's most popular and iconic tourist sites.

"I commend the sterling work of ASVA in creating quality visitor experiences and building Scotland's reputation as a top tourist destination for visitors from around the world."

ASVA chair Douglas Walker said the figures demonstrated that the visitor attractions sector in Scotland is in "robust health".

Top 10 visitor attractions in Scotland

1 National Museum of Scotland

2 Edinburgh Castle

3 Scottish National Gallery

4 Kelvingrove Art Gallery and Museum

5 Riverside Museum

6 St Giles' Cathedral

7 Royal Botanic Garden Edinburgh

8 Gretna Green

9 National War Museum

10 Gallery of Modern Art