Looking up...
図書館で本を借りました。
I borrowed a book from the library.
A building or institution where books and other materials are kept for reading, study, or reference.
図書館は静かにしてください。
Please be quiet in the library.
市立図書館には多くの本があります。
The city library has many books.
図書館 can also refer to a collection of books (e.g., a digital library), but the primary sense is a physical or institutional space.
図書館 refers to a public or institutional library building, while 図書室 (toshoshitsu) means a smaller library room, often within a school or office. Think of 図書館 as a 'library' and 図書室 as a 'library room.'
When describing actions at a library, use に (ni) to indicate location: 図書館に行く (go to the library), 図書館で本を読む (read a book at the library).
From 図書 (tosho, 'books') + 館 (kan, 'building'), meaning 'building for books.' 図書 combines 図 (to, 'plan' or 'drawing') and 書 (sho, 'write' or 'book'), originally referring to documents or records. 館 means a large building or hall.
図書館 is the standard term for a public or institutional library in Japanese. In informal contexts, ライブラリー (from English) may be used, especially for digital libraries or modern spaces. The word is always written in kanji; no hiragana/katakana variants are standard.