A civil war broke out in Portugal 1828-1834. At its conclusion, the victorious Liberal government made the decision to end state sponsorship of religious communities. They were inspired by the Suppression of the Society of Jesus during the previous century. Thus in May 1834 King Pedro IV declared the Dissolution of the monasteries in Portugal, intending to sell the seized properties to provide for the poor. The first stage of the government action was applied only to communities of men, which were immediately suppressed. In 1862, the law was applied to communities of women, who were barred from accepting new members, and their assets became subject to seizure. The abbey library was seized in the early 1880's, when the above-noted manuscripts were transferred to the National Library. The last nun of the community died in 1887, ending the monastic life of the abbey.