Abstract:With the development of data technology and digital economy, data has become an important social wealth and strategic resource. Data security is closely related to national security and national sovereignty. It is urgent to improve the legislation of data security now. However, reviewing the existing legal systems related to data security in our country, we can easily find that, the legislative process, source, concept and effect of data security can't meet the actual needs of maintaining data security and national security in our country obviously. In order to give full play to the positive role of the data security law in maintaining national security, we should further highlight the guiding ideological status of the holistic view of national security in the data security legislation, establish the inviolability principle of data sovereignty, recognize the dialectical relationship between the development of data application and national security, construct a scientific and integral legal system of data security. This can promote the modernization of governance system and governance ability on national security.