at the crossroads of cultures. Trade routes linking the Baltic to the Black Sea favored the development of settlements with Yotvingia-Ruthenian-Polish cultural characteristics. The city of Białystok has existed for five centuries and during this time the fate of the city has been affected by various political and economic forces. Surviving documents attest that around 1437 a representative of the Raczków family, Jakub Tabutowicz of the coat of arms Łabędź, received from Michael Žygimantaitis son of Sigismund Kęstutaitis, Duke of Lithuania, a wilderness area along the river Biała that marked the beginning of Białystok as a settlement. Białystok administratively was part of the Podlaskie Voivodeship, after 1569 also part of the Lesser Poland Province of the Crown of the Kingdom of Poland. From 1547, the settlement was owned by the Wiesiołowski family, which founded the first school. The first brick church and a castle were built between 1617 and 1826. The two-floor castle, designed on a rectangular plan in the Gothic-Renaissance style, was the work of . Extension of the castle was continued by Krzysztof Wiesiołowski, starost of Tykocin, Grand Marshal of Lithuania since 1635, and husband of Aleksandra Marianna Sobieska. In 1637 he died childless, and as a result, Białystok came under the management of his widow. After her death in 1645 the Wiesiołowski estate, including Białystok, passed to the Crown to cover the costs of maintaining Tykocin Castle. In the years 1645–1659 Białystok was managed by the starosts of Tykocin. In 1661 it was given to Stefan Czarniecki as a reward for his service in the victory over the Swedes during the Deluge. Four years later, it was given as a dowry of his daughter Aleksandra, who married Marshal of the Crown Court Jan Klemens Branicki, thus passing into the hands of the Branicki family. In 1692, , the son of Jan Klemens Branicki, obtained city rights for Białystok from King John III Sobieski. He constructed the Branicki Palace on the foundations of the castle of the Wiesiołowski family. In the first half of the eighteenth century the ownership of the city was inherited by Field Crown Hetman Jan Klemens Branicki. It was he who transformed the palace built by his father into a magnificent residence of a great noble, which was frequently visited by Polish kings and poets. In 1745 the first military technical school in Poland was founded in Białystok, and in 1748, one of the