▁Following ▁a ▁five - hour ▁negoti ating ▁session ▁that ▁ended ▁at ▁ 3 ▁a . m . ▁on ▁ 2 5 ▁March , ▁Corn wall is ▁and ▁Joseph ▁signed ▁the ▁final ▁agreement . ▁Corn wall is ▁was ▁unh appy ▁with ▁the ▁agreement , ▁but ▁he ▁also ▁wor ried ▁about ▁" the ▁ru in ous ▁consequences ▁of ... ▁renew ing ▁a ▁blo ody ▁and ▁hop eless ▁war ." ▁ ▁Term s ▁ ▁The ▁treat y , ▁beyond ▁confirm ing ▁" pe ace , ▁friendship , ▁and ▁good ▁understanding ," ▁called ▁for ▁the ▁following : ▁The ▁rest oration ▁of ▁prisoners ▁and ▁host ages . ▁Britain ▁to ▁return ▁the ▁Cape ▁Col ony ▁to ▁the ▁Bat av ian ▁Republic . ▁Britain ▁to ▁return ▁most ▁of ▁its ▁captured ▁Dutch ▁Gu iana ▁to ▁the ▁Bat av ian ▁Republic . ▁Britain ▁to ▁withdraw ▁its ▁forces ▁from ▁Egypt . ▁Spain ▁agree ing ▁to ▁British ▁rule ▁of ▁Tr in idad ▁The ▁Bat av ian ▁Republic ▁to ▁c ede ▁C ey lon , ▁previously ▁under ▁control ▁of ▁the ▁United ▁Provin ces ▁and ▁the ▁Dutch ▁East ▁India ▁company , ▁to ▁Britain . ▁France ▁to ▁withdraw ▁its ▁forces ▁from ▁the ▁Pap al ▁States ▁and ▁the ▁Kingdom ▁of ▁Nap les . ▁French ▁Gu iana ▁to ▁have ▁its ▁borders ▁defined . ▁Mal ta , ▁G oz o , ▁and ▁Com ino ▁to ▁be ▁restored ▁to ▁the ▁Kn ights ▁H osp it aller ▁and ▁to ▁be ▁declared ▁neutral . ▁Gib ral tar ▁to ▁remain ▁under ▁British ▁rule . ▁Men or ca ▁be ▁returned ▁to ▁Spain . ▁The ▁House