The setting for Princess of Amathar is a Dyson sphere. I read about it many years before one appeared on Star Trek: the Next Generation. It is the ultimate construction project for a species. From a story-telling perspective, it provides a writer with an unlimited amount of room for his characters to roam around in.
Here is more information on the Dyson Sphere from Wikipedia.