Shortly after the defeat in the Battle of LOCATION@1 in NUMBER@1 , the withdrawing ORGANIZATION@1 handed the city over to LOCATION@2 , in accordance with the MISC@1 agreement of July NUMBER@2 of that year .

Shortly after its defeat in the Battle of LOCATION@1 -LRB- NUMBER@1 -RRB- , the retreating ORGANIZATION@1 ceded the city back to LOCATION@2 by signing a peace treaty on July NUMBER@2 , NUMBER@1 .
