The National Library, once a barracks, was built in 1814 by Hamouda Bey to house Berber soldiers who'd been recruited after an Ottoman mutiny.