A Spanish court has ruled that a civil servant who failed to show up to work for years in the southern city of Cadiz must pay back nearly €27,000 in wages.

The ruling said the employee of a city-owned water utility did not appear at the office for up to six years and "did absolutely no work" from 2007 to 2010 before his retirement in 2011.

The judgment did not specify how the worker's absence went undetected for so long.

The decision marked the end of a legal process lasting for years after Cadiz city officials sought the penalty and the worker appealed against it.

The ruling said the civil servant cannot be named because of privacy laws.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.