 St. Casimir Church was originally the Kotowski Palace, residence of the Wyszogród "stolnik", Adam Kotowski.In 1688 it was purchased by Queen Maria Kazimiera Sobieska to be transformed into a church to serve the Benedictine Sisters of Perpetual Adoration of the Most Holy Sacrament, whom she had brought to Poland.In 1688-92 the Kotowski residence was transformed into a church-"cum"-cloister, to a design by the leading Polish-Dutch architect Tylman Gamerski.