FRANKFURT--A German regional court on Wednesday imposed a nationwide ban on Uber Technologies Inc.’s low-cost Uberpop service, ruling that the ride-sharing service lacked the necessary legal permits to operate under German law.

The ruling follows a campaign by Germany’s taxi operators against Uber, citing unfair competition from unlicensed drivers. The Uberpop service connects passengers with drivers who don’t have professional licenses.