The Carboniferous was the geological period after the Devonian and before the Permian. It lasted from about 359 to about 299 million years ago. It is the fifth period of the Paleozoic era and the Phanerozoic eon.