Kodak fortress (Ukrainian: Кодак; Polish: Kudak) was a fort built in 1635 by the order of the Polish king Władysław IV Vasa and the Sejm on the Dnieper River near what would become the town of Stari Kodaky (now near the city of Dnipropetrovsk in Ukraine. In 1711 according to the Treaty of the Pruth the fortress was destroyed by the Muscovites.
It was constructed by Stanisław Koniecpolski to control Cossacks of the Zaporizhian Sich, to prevent Ukrainian peasants from joining forces with the Cossacks and to guard the southeastern corner of the Polish-Lithuanian Commonwealth. The Poles tried to establish order in that area, and commissioned French military cartographer and engineer William le Vasseur de Beauplan to construct the fort. Building cost around 100,000 Polish zlotys. The dragoon garrison was commanded by the French officer Jean de Marion.
Shortly after construction was completed in July 1635, in the Sulima Uprising, the Cossack forces of Ivan Sulima captured the fortress in a surprise attack on the night of August 11/12, 1635. The Cossacks killed the entire German mercenary garrison (numbering 200 men) and demolished the fortress.