Green-friendly Slovenia amended its constitution on Thursday to ensure access to drinkable water was a fundamental right for all citizens and could not be commercialised.
With 64 votes in favour and none against, the 90-seat parliament added an article to the eurozone country's constitution saying "everyone has the right to drinkable water".
The centre-right opposition Slovenian Democratic Party (SDS) abstained from the vote saying the amendment was not necessary and it was only aimed at increasing public support.
Slovenia is a mountainous, water-rich country with more than half its territory covered by forest.
"Water resources represent a public good that is managed by the state. Water resources are primary and durably used to supply citizens with potable water and households with water and, in this sense, are not a market commodity," the article read.
Centre-left Prime Minister Miro Cerar had urged lawmakers to pass the bill saying the country of two million people should "protect water - the 21st century's liquid gold - at the highest legal level".
"Slovenian water has very good quality and, because of its value, in the future it will certainly be the target of foreign countries and international corporations' appetites. As it will gradually become a more valuable commodity in the future, pressure over it will increase and we must not give in," Cerar said.
Slovenia is the first European Union country to have included the right to water in its constitution, although according to Rampedre (the online Permanent World Report on the Right to Water) 15 other countries across the world had already done so.
Earlier this year, Slovenia was declared the world's first green destination country by the Netherlands-based organisation Green Destinations, while its capital, Ljubljana, is this year's European Green Capital.
Amnesty International implored Slovenia to ensure the new law would be also applied to the 10-12,000 Roma people living in the country.
"Many Roma are... denied even minimum levels of access to water and sanitation," Amnesty said in a statement.
The European Union agreed in 2014 to exclude water supply and water resources management from the rules governing the European internal market, following the first successful European Citizens' Initiative that managed to raise over one million signatures.