Google is illegally using EU citizens’ data to transfer its search results to US government agencies, a European court has ruled.

The European Court of Justice determined the American search giant’s decision not to enter into licensing deals with targeted advertising companies made it possible to use EU citizens’ personal data that was otherwise banned.

According to Reuters, the firm’s actions may affect EU citizens who currently drive to the US for health checks, undergo pupil transportation or have paid student tuition.

“The relevant step is for Google to stop using personal data in its search engine to reach European consumers’ searches in searches for health, social affairs, education, transport and other services, in particular those seeking travel information and entertainment information,” according to the ruling.

The ruling is likely to encourage Google to stop collecting private data from some EU citizens in order to expand its business abroad.

Prior to the decision, Google said: “We’re disappointed that Google Inc.’s efforts to improve its services did not require access to citizens’ data under the terms of its deals with foreign governments.”

A Google spokesperson further added: “We’ve reviewed the Court’s judgment and we’re reviewing our options.”