In Portugal, the Sephardim were given important roles in the sociopolitical sphere and enjoyed a certain amount of protection from the Crown (e.g. Yahia Ben Yahia, first "Rabino Maior" of Portugal and supervisor of the public revenue of the first King of Portugal, D. Afonso Henriques). Even with the increasing pressure from the Catholic Church, this state of affairs remained more or less constant and the number of Jews in Portugal grew with those running from Spain. This changed with the marriage of D. Manuel I of Portugal with the daughter of the Catholic Monarchs of the newly born Spain. In 1497 the Decree ordering the expulsion or forced conversion of all the Jews was passed, and the Sephardim either fled or went into secrecy under the guise of "Cristãos Novos", i.e. New Christians (this Decree was symbolically revoked in 1996 by the Portuguese Parliament). Those who fled to Genoa were only allowed to land provided they received baptism. Those who were fortunate enough to reach the Ottoman Empire had a better fate: the Sultan Bayezid II sarcastically sent his thanks to Ferdinand for sending him some of his best subjects, thus "impoverishing his own lands while enriching his (Bayezid's)". Jews arriving in the Ottoman Empire were mostly resettled in and around Thessalonica and to some extent in Constantinople and İzmir. This was followed by a great massacre of Jews in the city of Lisbon in 1506 and the establishment of the Portuguese Inquisition in 1536. This caused the flight of the Portuguese Jewish community, which continued until the extinction of the Courts of Inquisition in 1821; by then there were very few Jews in Portugal.