The city increasingly saw an influx of Jews after that date. In 1555, however, due to pressure by the clergy, the Jews were expelled and came back only with the annexation to Prussia in 1772. After 1370, the Bydgoszcz castle was the favourite residence of the grandson of the king and his would-be successor Duke Casimir IV, who died there in 1377. In 1397 thanks to Queen Jadwiga of Poland, a Carmelite convent was established in the city, the third in Poland after Gdańsk and Kraków.