Dragon Ball Z grew out of the original Dragon Ball story. Its true inspiration traces back to the Monkey King legend from Journey to the West, a classic piece of Chinese folklore.
Interestingly, the creator, Akira Toriyama, originally intended to title the manga Dragon Boy before it became the Dragon Ball we know today.