The Scottish government has announced an "effective ban" on fracking.
Energy Minister Paul Wheelhouse told members of the Scottish parliament that the practice "cannot and will not take place in Scotland".
He said an existing moratorium on the technique, which has been in place since 2015, would continue "indefinitely" after a consultation showed "overwhelming" opposition.
The government will seek Holyrood's endorsement for the ban in a vote following the October recess.
But with only the Conservatives now opposed to a ban, the vote is likely to be a formality.
The move was welcomed by environmental groups but has been slammed by Ineos, operators of the huge Grangemouth petrochemical plant, which holds fracking exploration licences across about 1800 square kilometres of the country.
The Scottish government has previously imposed a similar block on underground coal gasification (UCG) - a separate technique used to extract gas from coal seams deep underground - on environmental grounds.
It followed the introduction of a moratorium on both fracking and UCG in 2015, which saw a series of expert reports published on the potential health, environmental and economic impact of the controversial techniques, as well as a public consultation being carried out.
Mr Wheelhouse said the consultation came back with "overwhelming" opposition to fracking, with 99 percent of the 60,000 respondents supporting a ban. He said this showed that "there is no social licence for unconventional oil and gas to be taken forward at this time".
The move comes almost exactly a year on from the UK government giving the go-ahead to horizontal fracking in Lancashire.
Shale gas is currently processed in Scotland at a site in Grangemouth, having been shipped in from abroad, but cannot be extracted from beneath Scottish soil under the current moratorium, which is enforced through planning regulations.
Mr Wheelhouse said: "The decision I am announcing today means that fracking cannot and will not take place in Scotland."
Interest groups react
Mr Wheelhouse's announcement was welcomed by environmental groups, with Friends of the Earth Scotland and WWF Scotland both hailing a victory for campaigners.
WWF Scotland official Sam Gardner said it was "excellent news", saying "the climate science is clear" that fossil fuels should be "left in the ground".
Mary Church from Friends of the Earth Scotland said it was a "huge win for the anti-fracking movement" which would be "warmly welcomed across the country and around the world".
However Ineos said the move could see "large numbers of Scottish workers leaving the country to find work".
Ken Cronin of UK Onshore Oil and Gas also said it was a "poor decision", which ignored "extensive independent research" and was "based on dogma not evidence or geopolitical reality".
And the GMB Scotland trade union said the move was "mired in dishonesty" and "an abandonment of the national interest", saying Scotland would now be dependent on gas shipped in from "the likes of Qatar and Russia".
The Scottish Greens said the announcement was "a step in the right direction". However, they also wanted a more permanent ban, with MSP Mark Ruskell saying the moratorium was "legally shaky" and open to challenge.
What is fracking and why is it controversial?
Fracking is the process of drilling down into the earth before a high-pressure water mixture is directed at the rock to release the gas inside.
The extensive use of fracking in the US, where it has revolutionised the energy industry, has prompted environmental concerns.
The first is that fracking uses huge amounts of water that must be transported to the fracking site, at significant environmental cost.
The second is the worry that potentially carcinogenic chemicals used may escape and contaminate groundwater around the fracking site.