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 not dispersed but were barred from accepting new members, and their assets became subject to seizure. The last nun of the community died in 1886, ending the monastic life of the abbey.