The first jail sentence in relation to the G20 riots this year has been handed to a 21-year-old Dutchman, local media said.
He was given the sentence at a court in Germany yesterday (August 28), according to The Local.
The man has not been named, but DPA news agency said he has been given a two-year, seven-month custodial sentence for throwing two bottles towards police.
Those watching proceedings were shocked by the sentence as prosecutors had originally only asked for the sentence to be one year and nine months and the defence has now asked for an acquittal.
The man had been convicted on July 6, which was the day before the G20 summit, of "aggravated disturbance of the peace, grievous bodily harm, a serious attack on a security officer and resisting arrest."
Police in Hamburg claim there are more than 2,000 probes open which are linked to violence over the G20 summit.
Several riots took place during the G20 summit where people stole from shops and set cars alight. Violence also led to calls for Hamburg mayor Olaf Schulz to resign.