Europe’s push toward cleaner energy and declining oil demand are threatening its refineries, some of which have been struggling to find buyers for years.

The continent has led the global drive away from fossil fuels by integrating renewable energy, including solar and wind power, into its power grid and supporting the development of electric vehicles. The region has implemented more climate policies than any other part of the world, according to the European Union.

That...