In a statement released by a Madrid court on Tuesday, the judge ordered Uber to cease activities in Spain. The car-hailing service was accused of operating illegally with no professional license and of breaking competition laws.
There was no immediate comment from Uber in response to the ban.
Read MoreWhy Uber at $40 billion makes no sense
Uber has already faced a number of regulatory battles in Europe and is in the process of arguing that a new French law governing car-service apps is unconstitutional.
The Spanish ban comes on the same day as a ban from the Indian capital of New Delhi, following the alleged rape of female passenger by an Uber driver.
Read MorePortland, Oregon, sues to stop Uber online car service
The service was also banned from Thailand on Tuesday due to regulatory issues and is under scrutiny in Vietnam, Reuters reported.
Follow us on Twitter: @CNBCWorld