King Władysław Jagiełło granted several privileges to the city. Jagiełło himself frequently travelled from Kraków to Vilnius, and liked to stay at Radom Castle en route. On March 18, 1401, the Pact of Vilnius and Radom was signed, which strengthened the Polish–Lithuanian union. Immediately after the Pact, preparations for the Polish–Lithuanian–Teutonic War began. King Casimir IV Jagiellon frequently visited Radom, along with his wife, Elizabeth of Austria. Here, the King would host foreign envoys, from such countries as the Crimean Khanate, the Kingdom of Bohemia, and the Duchy of Bavaria. On November 18, 1489, Johann von Tiefen, the Grand Master of the Teutonic Knights, paid homage to King Jagiellon at Radom Castle. Mikołaj Radomski, one of the earliest Polish composers, comes from Radom. In 1468, the complex of a Bernardine church and monastery was founded here by King Jagiellon, with support of the local starosta, Dominik z Kazanowa. The complex was originally made of wood (until 1507).