Nowadays, it has become important to find different ways to reduce the problems resulting from the textile industry, and one of the most important ways is to replace synthetic dyes with natural dyes, and therefore the research aims to create an integrated and environmentally safe dyeing system by dyeing cotton fabrics with Walnut tree bark extract and improving the dye absorption capacity of cotton by chitosan treatment as well as improving the color fastness properties by simultaneous treatment with environmentally friendly mordants. To achieve these goals several parameters were studied, namely: the dye extraction process, conditions of the chitosan treatment, conditions of the dyeing process, as well as conditions of the fixation process using eco-friendly mordants (citric acid, tannic acid, and ammonium alum). The researcher concluded that the optimal conditions for the dye extraction process, which gives the maximum color value, was the process of soaking the plant powder for two hours at a pH of 5.6 at room temperature, the best concentration of chitosan is 4% (v.w), the curing temperature is 160 ° C for 3 minutes. And that the optimal conditions for the dyeing process are: 80% (v.w) dye extract, pH 6, a temperature of 90 °C, and a dyeing time is 60 minutes. One of the most important recommendations of the researcher was to conduct more research on the application of walnut tree bark extract on different fabrics and use various mordants to develop a wide range of shades as well as study its medicinal properties on natural fabrics.