The flowering plants were thought to have evolved from within the gymnosperms. However, the known gymnosperms are a clade which is distinct from the angiosperms. Apparently, the two clades diverged (split) some 300 million years ago. That is about the boundary of the Carboniferous period with the Permian period.