 The first known synagogue in Skopje, Beth Aharon, was built in 1366.The area's Jewish community remained small well into Ottoman times, with the next major influx of Jews to the area coming with the Spanish and Portuguese Inquisitions, and Sultan Bayezid II of the Ottoman Empire welcomed Jews who were able to reach his territories.They were granted significant autonomy, with various rights including the right to buy real estate, to build synagogues and to conduct trade throughout the Ottoman Empire.