The University of Oxford has lost out to Lincoln and Bath in new rankings.

In the places where students and residents feel the safest when walking alone at night, the city has finished ninth in the country.

A study conducted by Get Licensed has looked into the number of pubs, bars and clubs, the cost of a pint, the cost of a taxi, the safety sentiment for people in the city and the safety index score of the UK’s most populated university cities to reveal Britain’s Best and Worst University Night Out.

Oxford finished ninth whilst Durham topped the list for safety while York and Bath came second and third respectively.

READ MORE: Oxford University scholarship awarded by Sky News journalist

The University of Oxford.The University of Oxford. (Image: Oriel College)

Lincoln, Edinburgh, Sunderland, Cambridge and Norwich all were seen as safer than Oxford according to the study.

Shahzad Ali, CEO and security expert at Get Licensed said: “Walking alone at night can pose a greater danger for many, particularly women, so knowing how to stay safe when in this position is critical.

“There are various ways to keep your loved ones informed about your whereabouts. For instance, iPhones provide the Find My iPhone app, enabling you to share your location with selected contacts and vice versa.

“Given the high likelihood of having your phone on you, your chosen contacts can always access your real-time position.

“This proves especially useful when walking alone in the dark and feeling uneasy.”

READ MORE: Global celebrity makes major career change to study at Oxford

Oxford finished ninth.Oxford finished ninth. (Image: Newsquest)

“Sometimes it can be tempting to take a shortcut through a back road that you would usually walk down in the light, however, it is better to opt for the safer option of streets with street lights.

“Main roads are also a better choice to walk down, as long as they have a pedestrian path available to you - these roads are often busier, with lots of people making their way home and minding their own business.

“When and if available to you, you should opt for public transport over walking alone at night or dark evenings.

"Make yourself aware of the possible public transport options, such as bus or tram routes, to your desired location.

“Walking the streets of a regular bus route can also be a safer option, therefore, if you are ever feeling vulnerable there will be public transport available to flag down for safety."

READ MORE: Oxford University beaten by Bristol and Manchester in new rankings

She added: “Finally, ensure you have connected your phone to the 61016 text service for when you feel uncertain or vulnerable when walking alone.

“This way you can text the police without drawing attention to yourself or unintentionally accelerating a dangerous situation.

“This number is always monitored, however, it’s not guaranteed that it will be seen immediately, therefore, if you do feel you are in a dangerous or vulnerable situation that is unavoidable then phone 999 immediately and share with the provider your location.”