Augustus II the Strong
In 1713, Augustus II the Strong bought Morsztyn's palace as his residence and expanded it into neighbouring areas which included the monastery and church. Therefore, funds were allocated for the construction of a new church on the spot where it is now.