Image from http://www.entkent.com/Cawthorne-Cooksey.html.
By being such a easy-going captive they decide to give him his freedom as long as he signs the Lilliputians agreement. The agreement pretty much states that he shouldn't kill Lilliputians or destroy their things. He must also be on their side in the the war against Blefuscu. He agrees to this but doesn't think he should be involved in a foreign war which started over what side to crack and egg. No joke! Thats what these two peoples are fighting over. But since he has agreed he must fight against them. So, he takes the Blefuscusians ships that were about to attack Lilliput and bring them to the Emperor of Lilliput. Which pretty much seems to end the war between them. Gulliver finds that the Blefuscusians aren't really that bed as the Lilliputians say, which isn't any surprise.