Please choose the correct answer to the question: The formation of coal deposits occurred over millions of years. Which feature was most responsible for these deposits?

Answer1: barren deserts Answer2: active volcanoes Answer3: mountains covered in trees Answer4: swamps with dense vegetation

Answer format: answer1/answer2/answer3/answer4
Answer: answer4