Apple and the Republic of Ireland have concluded a deal that will see the US manufacturer pay €13bn within weeks.

The agreement comes following an August 2016 ruling by EU competition authorities that sees Ireland’s favourable tax arrangements for the US technology behemoth as illegal state aid. Negotiations took place for little under 19 months after the European Commission made clear no company could be enjoying a taxation regime that is not available to other firms.

According to the Irish finance minister, Paschal Donohoe, payments will be made in instalments starting in the second quarter of 2018. The whole amount due will be paid by September.

The Irish government will not be enjoying a spending windfall. The deal between Apple and Dublin is that the money will be placed in an escrow account pending the company’s appeal at the European Court of Justice. According to Mr Donohoe, this is the largest recovery fund of its kind “ever to be established.”

European competition commission Margrethe Vestager hailed the agreement as “a significant day,” although Brussels had previously expressed frustration with the delay of the recovery.