The Thirteen Years ' War yielded great benefits for the transformation of Danzig ( formerly Gdansk ) into an independent city-state under the protection of the Polish crown and the capture of other Knights territories .
After the Thirteen Years ' War , Gdansk became known as Danzig .