 While negotiating with Emperor Heraclius beneath the walls of Constantinople in 617, the Avars launched a surprise attack.While they were unable to capture the city centre they pillaged the suburbs of the city and took 270,000 captives.Payments in gold and goods to the Avars reached the record sum of 200,000 "solidi" shortly before 626.