BERLIN — A Turkish court has ruled that a German journalist facing trial on terrorism-related charges is free to leave the country, a move that could help improve relations between two countries with deep ties.

The journalist, Mesale Tolu, a German of Turkish ancestry who was working in Istanbul, was arrested in April 2017 on charges of spreading propaganda for terrorist organizations. She was held in pretrial detention until December, when she was released but ordered to remain in the country.

Ms. Tolu said on Twitter on Monday that her lawyer had won her permission to travel. “The reports about the lifting of my travel ban are true,” she said, thanking those who had worked for her release.

Germany’s foreign minister, Heiko Maas, welcomed the decision, calling it “a step toward improving our relations with Turkey.” But he insisted that further steps must follow, pointing to at least seven other German citizens who are jailed in Turkey for what Berlin considers political reasons.