On the basis of the will of Borbála Miletics, a wealthy citizen of Komárno, in 1709 she bequeathed two commercial premises and her house to the poor and founded a poorhouse, next to which a chapel was built in 1750. It was damaged shortly after the earthquake of 1763 and burnt down in 1768.
The poorhouse, in which 12 poor people were accommodated, was also supported by the Esztergom canon Ignác Bärnkopf. The people living in the poorhouse were allowed to beg in the town twice a year, at Easter and on St. Anne’s Day. The poorhouse and chapel burnt down in the fire of 1848. After the restoration of the chapel (since the Church of St. John, which had been used previously, was no longer rebuilt), it was used by the German inhabitants of the town. Its two small bells were melted down during the First World War. Later, in 1922, a new one was cast in the workshop of Jakab Dosztál. The poorhouse (which had operated on donations until the 1920s owing to inflation) existed until 1945.