The Slovak city has been chosen, ahead of the other two finalists, Augsburg in Germany and Cascais in Portugal.
The Irish municipality will take over from London (2016) after beating six other candidates. The volunteering capital in 2018 will be Aarhus.