In the last five years, the number of periodic variable stars has increased by two million. We used the ZTF DR2 data to find and build a catalog that includes 780,000 periodic variable stars. These periodic variable stars were classified into 11 types, which greatly complemented the variable stars in Galactic disk. Based on the latest ZTF DR16 data, we found 2 million variable candidates. We trained a machine learner to classify variable stars, and the learner had a prediction accuracy of 94%. Using millions of variable stars, we carried out studies to optimize the period–luminosity relations and the Galactic structure and the extinction law. With the future China Space Station Telescope, millions of variable stars in the Local Group will be discovered. They help to study the structure of our Local Group and also to cross-check the distance ladders based on different variable stars.