St Andrews University has become the first higher education institution in Scotland to offer a 24-hour library service for exam students, according to staff.
Students will have a 24-hour service
The university said it has decided to offer a round-the-clock service in the run-up to and during exams.
A library review, conducted earlier this year by the student body, found that there was support for a 24-hour service.
Officials said the library review was "a coherent vision of a new library concept that embraces technology and truly responds to student needs".
Following the review, it was agreed to have a pilot scheme of extended opening until midnight on Sundays in May followed by experimental continuous opening of the main library.
Students Association President, Rory O'Hare, said: "Twenty four-hour library access has been the holy grail for students for as long as I can remember and reflects the changing study patterns of the modern students lifestyle.
"It is a very welcome move by the university."
Dr Louis Lee, director of library services, said: "A successful, effective library and information services depend critically on working closely and collaboratively with the student body.
"The pilot 24 hour opening is an example of our drive to that service ethos."