The European Union has decided to relocate one of its agencies to Amsterdam by drawing the name of the new city out of a hat at random, after a tie in the official vote on where to move it.

EU ministers meeting in Brussels voted on where to move the European Medicines Agency (EMA), which currently employs over 900 people in London, but after a tie between Amsterdam and Milan, a game of chance was used to decide the new location.

The drawing of lots led to Amsterdam being crowned the winner and the new host of the agency, which will move after Britain leaves the EU.

The EMA coordinates the evaluation of the safety and effectiveness of treatments by national agencies before they can be used across the EU.

Sources familiar with the meeting told the Reuters news agency that Milan was two votes short of outright victory in a second round of voting, with 12 votes – ahead of 9 for Amsterdam and 5 for Copenhagen.

After the Danish capital was knocked out, its votes mostly went to Amsterdam, producing a 13-13 tie, however.

Under the rules of the selection process, the Estonian minister chairing the meeting stepped in and drew lots to decide the winner.

The agency is currently based in Canary Wharf in London (Thomson Reuters) (Reuters)

Slovakian capital Bratislava was also a contender, coming in fourth place.

19 cities had bid for the economic boost and prestige of the EMA’s relocation, which will also likely bring offices of major pharmaceutical companies and lobbyists with it.

Brexit: the deciders Show all 8 1 /8 Brexit: the deciders Brexit: the deciders European Union's chief Brexit negotiator, Michel Barnier Getty Brexit: the deciders French President Emmanuel Macron Getty Brexit: the deciders German Chancellor Angela Merkel Reuters Brexit: the deciders Commission President Jean-Claude Juncker EPA Brexit: the deciders The European Parliament's chief Brexit negotiator Guy Verhofstadt Getty Brexit: the deciders Britain's Prime Minister Theresa May Getty Images Brexit: the deciders Britain's Chancellor of the Exchequer, Philip Hammond PA Brexit: the deciders After the first and second appointed Brexit secretaries resigned (David Davis and Dominic Raab respectively), Stephen Barclay is currently heading up the position PA

The UK will also be losing the European Banking Authority, currently based in London, after Brexit. Its host city will be decided later on Monday evening.