Celestial / Cosmic
The prime deities trap the titans and elementals on the elemental planes.
The prime deities created pocket planes to trap the some of the titans and the elementals on, which have slowly corrupted and made the elemental planes what they are now.