Bathory thanked Zamoyski by granting him the office of Deputy Chancellor on 16 May 1576. He participated on Batory's side in the quelling of the Danzig rebellion in 1576–1577, sponsoring a chorągiew of pancerni (cavalry unit) and participating in close combat on several occasions. In 1577 he married again, this time marrying Krystyna Radziwiłł, daughter of magnate Mikołaj Radziwiłł Czarny; this made him a close ally of the Radziwiłł family, the most powerful family in the Grand Duchy of Lithuania. In 1578 he received the post of the Grand Crown Chancellor. That year poet Jan Kochanowski dedicated his "Odprawa Posłów Greckich", the first Polish tragedy, to him.