 Capitulation treatment was signed 4 days later.Polish troops marched out the city on 19 October.The city's defense was led by Kiev's castellan Stefan Czarniecki, while Swedish forces were commanded by king Charles Gustav and Arvid Wittenberg.