The Irish government has reached an agreement with Apple to start collecting the €13bn ($15bn) owed by the tech giant.

“We have now reached agreement with Apple in relation to the principles and operation of the escrow fund,” finance minister Paschal Donohoe said in Brussels in quotes confirmed by Ireland’s finance ministry.

The European Commission ruled that the iPhone maker must reimburse the Irish state a record €13bn to make up for what it considered to be unpaid taxes.

The ruling stated that tax benefits received by the tech company were illegal under EU rules, because they allowed Apple to pay substantially less tax than other businesses.

The announcement comes after some tension with Brussels, which referred Ireland to the European Court of Justice for failing to collect the back taxes.