Spain's Supreme Court has given a two-year suspended prison sentence to the captain of the Prestige oil tanker that sank off Spain's northwestern coast 14 years ago, triggering a major environmental catastrophe.

The court said Tuesday it upheld an appeal against the acquittal of Apostolos Mangouras by a lower court in 2013 and found him guilty of environmental crimes. The court ordered the ship's insurance agency, its owner and the International Oil Pollution Compensation Funds to pay as yet unspecified compensation.

The 26-year-old Prestige sank after running into problems and spewed most of its 77,000 metric tons (20.5 million gallons) of fuel oil into one of the world's richest fishing grounds.

First convictions with sentences of two years or less are suspended in Spain.