The first castle on the spot was erected by the Dukes of Masovia as early as the 13th century. However, in the following century their court was moved to the future Royal Castle in Warsaw, and the Ujazdów Castle fell into neglect. In the 16th century, a wooden manor was built there for Queen Bona Sforza. It was at Ujazdów Castle, on January 12, 1578, that Jan Kochanowski's blank-verse tragedy "The Dismissal of the Greek Envoys" received its premiere during the wedding of Jan Zamoyski and Krystyna Radziwiłł.