The library at Hogwarts is home to thousands of books and is open until 8pm for those in need of a quiet place to study. Most books are available for loan and can be put on hold but expect popular books to have a waiting list during busy periods.
It is run by librarian Madam Irma Pince, who is infamous amongst the student population for the lengths at which she goes to protect the books. In order to discourage doodling and stealing, she has jinxed many of the books to hit students over the head if any attempt is made.
Much like its muggle equivalent, rules of no food or loud conversations are strictly enforced. As is the rule of no students within the Restricted Section without written permission from a teacher. To further protect students, it has been known for headmasters to completely remove certain books altogether.