When the Mongols invaded the Kingdom of Poland for the second time at the turn of 1259 and 1260, a second invasion of Hungary eleven years after the first catastrophic defeat became a real threat. King Béla IV of Hungary sent his envoy Panyit Miskolc to the court of Khan Berke in the spring of 1260 to successfully fend off the attack by diplomatic means. Three years later, in 1263, Panyit – now a member of the retinue of Duke Stephen – was again entrusted to travel to the Mongols after a brief looting raid along the southeastern border. During his visit, Khan Berke offered political alliance and marriage contract to Béla IV between their children, but the Hungarian monarch refused it upon the advice of Pope Alexander IV.