While solving the problem of serious lack of systematization of environmental law in China,the compilation of the ecological environmental code is faced with the problem of affecting the stability of the code due to the dynamics and com-plexity of the adjustment objects of environmental law.The construction and coherence of the interior system can help to re-solve this dilemma.Environmental law takes environmental justice as the highest value,and refines the principles of coordina-tion,prevention principle,precautionary principle,the principle of engaging the general public,and the principle of the burden on those responsible for the environment to form a system of basic principles.The coherence of the interior system is reflected in the relationship between the principles of environmental law,the static value ranking and dynamic collaborative relationship,and the concretization of the principles of environmental law.The compilation of the ecological environmental code should es-tablish the basic principles as the regulatory content of the code,clarify the different sub-principles in the sub-parts,estab-lish the"Ecological Environmental Protection Obligations"as the functional concept linking the interior system and the exterior system,and set up the general system as the operational content in the general provisions,so as to achieve the coherence of the Interior system in legislation.