Original: It was the capital of Kazakhstan (and its predecessor, the Kazakh SSR) from 1929 to 1998.
Simplified: It was the capital of Kazakhstan from 1929 to 1998.