Photo

LONDON — Uber has called it quits in Spain, at least for now.

Uber, the ride-booking company that has been plagued by vocal opposition from taxi associations and policy makers around the world, suspended its operations in Spain late Tuesday. The decision came in response to a judge’s ruling this month that the company’s low-cost service, called UberPop, did not comply with Spanish laws and potentially amounted to unfair competition for taxi drivers.

In a first in the growing pushback against Uber’s global expansion, the judge also ordered that Spanish telecommunications operators and banks stop supporting the company’s services.

Uber said it received the legal ruling on Tuesday and was therefore only now complying with the judge’s decision. The American company, which operated only its low-cost service in Spain, said it had already filed an appeal. The review could take months.

“We will also collaborate with Spanish politicians to develop the modern framework needed to create a permanent home for Uber and the sharing economy,” the company said in a blog post.

The latest setback for Uber, which is now valued at roughly $40 billion, follows a series of legal problems around the world, including widespread protests from taxi associations and accusations that the company does not meet national transportation rules.

That includes efforts in France to ban the ride-booking service. The French government has said that Uber’s low-cost service can not operate in the country starting Thursday, although the company is appealing the decision and said that it would continue operations there until a court rules on the case.

The decision to shut down in Spain contrasts with temporary bans in countries such as Germany and Belgium, where judges allowed Uber to continue taking passengers while the company appealed the rulings.