Also, some tall trees and some shrubby mangrove-like species of Cordaitales seem to have grown in the Carboniferous coal swamps. Cordaitales were also abundant during the Permian, but became less important during the Triassic. They died out during the time of the end-Triassic mass extinction. 