Located in the suburb of Kamakura, Kanazawa Bunko, currently one of Kanagawa's Prefectural museums, is presumed to be the oldest library established by and for samurai in the 13th century.
Kanazawa Bunko (文庫:bunko means library) was created as a private family library in 1275 by Hojo Sanetoki, who was the grandson of the second regent of the Kamakura Shogunate (the first samurai government in Japan). The library housed a variety of precious Chinese and Japanese books of the time, but when the Kamakura Shogunate was destroyed, the Hojo clan fell as well, and most of the library's collections were either taken away or stolen.
Later in 1897, it was restored by the powerful politicians of the Meiji government, but the Great Kanto Earthquake destroyed it again in 1923. It was rebuilt in 1930 as the Kanagawa Prefectural Library, then in 1955 became the Prefectural Medieval History Museum. After such a turbulent and dramatic history, it now houses ancient documents, paintings, Buddha statues, etc., which include a number of important cultural properties of Japan. It stands on the precincts of Shomouji Temple, and is walking distance (12 min) from Kanazawa Bunko station on the Keihin Kyuko Line.