A Turkish rapist who attacked a 16-year-old girl will be deported from Germany after a judge said his expulsion from the country would act as a deterrent.

The defendant, named in Germany only as Ali B., raped the teenager - also of Turkish origin - in Worms, a city in Rhineland-Palatinate state.

A judge has now said the 26-year-old must leave Germany 'to discourage foreigners from a culture of sexual inequality from committing sex crimes'.

a Turkish rapist named in Germany as Ali B. (pictured in court) who attacked a 16-year-old girl will be deported from Germany after a judge said his expulsion from the country would act as a deterrent

The defendant raped the teenager - also of Turkish origin - in Worms (pictured), a city in the country's Rhineland-Palatinate state

The expulsion was announced by 64-year-old judge Dagmar Wünsch at a court in Rhineland-Palatinate.

Ali B. had been in Germany for 19 years, according to the German tabloid Bild.

Judge Wünsch is said to have emphasised the 'general preventive aspects' of the ruling in order to deter such crimes in the future.

The expulsion was announced by 64-year-old judge Dagmar Wünsch at a court in Rhineland-Palatinate

In 2016, it was reported that Germany had toughened its rape laws in the wake of a series of sex attacks carried out in Cologne on New Year's Eve.

The German parliament passed legislation broadening the definition of sex crimes and making it easier to deport foreign nationals who commit them.

It followed years of debate on the need for tougher treatment of rape by the country's criminal justice system.