Both Gnome and KDE provide a desktop environment and an application development framework. A desktop environment usually consists of a window manager, task bar, and perhaps a file manager and documentation browser. A development framework provides libraries and a GUI toolkit for application development.
Applications like WindowMaker, and Enlightenment are desktop environments which tend not to provide development frameworks. They do, however, tend to provide session management. While you can use these with desktop environments like Gnome and KDE their functionalities sometimes overlap, and may even conflict.