Where did coal formation take place?

Coal formation generally took place in swamps and marshes that existed in large quantity in tropical regions during the Carboniferous period of Earth's geological history, about 300-360 million years ago. The accumulation of dead plant matter in these areas over millions of years underwent geological processes like pressure, heat, and chemical reactions causing the formation of fossil fuels, including coal.