How can volcanic eruptions be beneficial?

Volcanoes can produce oxygen in the atmosphere.
Volcanoes provide energy for plants and animals to use.
Volcanoes can produce landmass such as islands.
Volcanoes provides homes for certain species of animals and plants.