The Sandomierz Confederation was an anti-Swedish confederation, formed on May 20, 1704 in defense of the King of Poland, August II the Strong. It was formed in reaction to the Warsaw Confederation, and its marshal was Stanisław Ernest Denhoff. The confederation lasted until 1717, when it was disbanded by the Silent Sejm.