A German train drivers' union says it will end a strike that has caused commuter chaos ahead of the country's celebration on Sunday of the 25th anniversary of the fall of the Berlin Wall.

Germans news agency dpa reported Friday that the head of the GDL union announced the strike would end Saturday at 6 p.m., more than a day sooner than planned.

GDL chief Claus Weselsky spoke after a court in Frankfurt ruled the strike was lawful.

The union wants a 5 percent pay increase and shorter working hours, but the main sticking point is its demand to negotiate for train drivers and for other staff.

There has been widespread criticism of the strike, including over the potential disruption for people traveling to the Wall festivities in Berlin.