The original medieval church was not sufficient for the increasing amount of believers, and was therefore demolished. In 1771 a new late baroque church was built, precious for its architectural value and artistic quality of its interior. The church is famous for the gingerbread Nativity scene installed every year since 1972.
Source: https://www.prague.eu/en/object/places/1691/st-mathew-church-kostel-sv-mateje