After two disastrous invasions in 1241 and 1259, the mighty Golden Horde returned to Poland confident, expecting easy loot and scorched earth. This time, however, the invaders faced a new reality – Leszek the Black had modernized the defense system, and cities like Kraków and Sandomierz became impregnable strongholds. Instead of panic, the Mongols encountered organized resistance, and the final blow fell at Stary Sącz. Thanks to the close cooperation of Polish forces and Hungarian reinforcements, the nomadic army was encircled and massacred, ending in their ignominious flight, ensuring they would never again dare to invade Poland on such a scale.