The German Parliament recognized the Armenian genocide Thursday, drawing harsh criticism from the Turkish government, which withdrew its ambassador to Germany “for consultations” after the parliamentary vote.

The massacres and deportations of 1 million to 1.5 million Armenians living in the Ottoman Empire in 1915 has been described as genocide by more than 20 nations, including Germany’s neighbor France.

Turkey has disputed the death toll and refuses to acknowledge the violence as genocide. Turkish Prime Minister Binali Yildirim was quoted as saying that the German resolution was “ridiculous.” He had previously called the parliamentary vote a “test of friendship” between the two countries.

Despite those comments by leading Turkish officials, however, German lawmakers nearly unanimously voted to adopt the resolution to recognize the massacre as genocide. Only one, a member of Chancellor Angela Merkel’s Christian Democratic Party, voted against it.

Norbert Lammert, the president of the Bundestag, Germany’s parliament, called the surprisingly clear decision “remarkable.” Lammert said the current Turkish government was not responsible for what had happened more than a century ago, but he urged Turkey to nevertheless reappraise the past. The Turkish government “is jointly responsible for (how the matter is handled) in the future,” Lammert said.

Although Germany is neither the first nor the only country to oppose Turkey’s assessment on the matter, the decision could have far-reaching consequences. Europe recently negotiated a refugee deal with Turkey that has helped reduce the influx of migrants. Merkel was credited for having been the driving force behind that deal. Hence, damages to Turkish-German relations could come at a political cost for Merkel and much of Europe.

On Thursday, hundreds of Turks protested against the resolution in front of the iconic Brandenburg Gate in Berlin, highlighting another potential fallout of the parliamentary recognition.

There are about 1.5 million Turks living in Germany, more than anywhere else apart from Turkey. Turkish President Recep Tayyip Erdogan has frequently been criticized for deliberately setting a political agenda of Turks living in Germany and provoking tensions.

Turkish citizens were invited to move to Germany as “guest workers” starting in the 1960s. Back then, the central European nations were in an economic boom, and Germany lacked workers to fill vacancies.

Turks living in Germany still hold voting rights in Turkey. Two years ago, Germany allowed Turkey to set up voting boots in Germany for the Turkish presidential elections for the first time.