The European Court of Justice upheld a 2016 decision that said Apple received unlawful aid from Ireland.
Apple has been ordered to pay Ireland €13bn (£11bn; $14bn) in unpaid taxes by Europe's top court, putting an end to an eight-year row.
The European Commission accused Ireland of giving Apple illegal tax advantages in 2016, but Ireland has consistently argued against the need for the tax to be paid.
The Irish government said it would respect the ruling.
Apple said it was disappointed with the decision and accused the European Commission of "trying to retroactively change the rules".
A separate European Court of Justice (ECJ) ruling on Tuesday also brought a long-running case with Google to a close, with the company ordered to pay a €2.4bn (£2bn) fine for market dominance abuse.
Ireland's whole shtick is low corporate taxes which has lead to boom times in recent years. Makes sense they would want to uphold that reputation, but well played to them as this decision makes it a win-win. I guess they must take these taxes now, awww shucks.
This row stretches back 8 years, that person already sailed into the sunset on a platinum yatch. This year's execs will get double platinum yatchs for finally putting this matter to rest.
Pray tell o' wise one what happens to the Ulster militia dug in for years when Ireland claims NI? Nah I'm sure they'll just pack up and leave and the remainder will join hands with their Catholic brothers and sisters in kumbaya.