It ended the longstanding rivalry in Central Asia and enabled the two countries to outflank the Germans, who were threatening to connect Berlin to Baghdad with a new railroad that would probably align the Ottoman Empire with Germany.