The opulent monastery did not escape the tribulations of war. During the Prussian siege of Prague in 1757, the church was temporarily converted into a military stable and infirmary. It did, however, avoid the reforms of Emperor Joseph II, who on Jan. 12, 1782, declared that all monasteries and convents not involved in something beneficial to society would be shut down. Břevnov was exempted due to its status as a learning center.