The Biblioteca Nacional de Portugal is the Portuguese national library, fulfilling the function of legal deposit and copyright.