Glasgow has held onto the title of Greatest Sporting City in Scotland for the second year running.

Following a historic performance at the Rio 2016 Olympics, research from ESPN and the University of Bath has revealed that the city is the best place in the country to be a sports fan.

Each of Scotland’s cities were ranked on 12 factors that fans identified as key to a great sporting city.

Among the categories was value for money, success, atmosphere, history, venues and transport links.

Glasgow performed best in the UK for its sporting history but received the lowest score for participation.

The achievement comes months after the city came fifth at the 2016 SportBusiness Ultimate Sport City Awards, ahead of cities across the world including Los Angeles and Tokyo.

Through the awards, Glasgow was recognised for its commitment to increasing participation and creating new sporting opportunities for citizens in the lead up to and beyond the Glasgow 2014 Commonwealth Games.

Read more: Olympics success 'can create greater sense of community'

In recent years, the city has delivered world class sporting events including the FIG World Gymnastics Championships, which attracted around 80,000 spectators and 594 gymnasts, the IPC Swimming World Championships and two historic Davis Cup ties.

The World Badminton Championships will be held in the city in 2017, followed by the European Championships in 2018, which is set to bring over 3,000 athletes and 8,500 officials, media and others to Glasgow, furthering its reputation as the greatest sporting city in Scotland.

Out of the 49 cities included across Britain, Glasgow came in sixth place, while Edinburgh ranked eighth.

Councillor Archie Graham OBE, Depute Leader of Glasgow City Council and Chair of Glasgow Life, said: “Securing the title of Scotland’s Greatest Sporting City for the second year in a row is thanks to our investment in world-class facilities, our international events programme, and our commitment to increasing participation and leaving a lasting legacy for future generations.

Read more: Olympics success 'can create greater sense of community'

“In recent years we have spent close to £200million building new and improved sports venues such as the Emirates Arena, which has helped us attract some of the world’s biggest and best events. But we never live on past glories in Glasgow and are already looking forward to the 2017 World Badminton Championships and the 2018 European Championships.

“To be ranked as Scotland’s Greatest Sporting City is testament to our city’s great love of sport.”