The aim of current study was to investigate the antimicrobial effect of gum essential oil of Pistacia atlantica (wild pistachio) tree (GEO) and design a new film based on polypropylene polymer coated with silica nanoparticles and GEO. The antimicrobial activity of the packaging film was evaluated with or without milk on Staphylococcus aureus, Salmonella enterica, Escherichia coli, and Listeria monocytogenes during 35 days. The results showed that GEO has significant antibacterial properties. It was most effective on Salmonella enterica, while its effect on Listeria monocytogenes was the weakest. Antimicrobial activity of the film without milk showed no significant differences among the different sizes of nanoparticles used (0.05, 0.025, and 0.051 g) (p ≥ .05). It can be concluded that polypropylene incorporated with GEO and silica nanoparticles active film had antimicrobial properties up to 35 days, while using with milk or without milk. Therefore, this type of packaging is effective to enhance the shelf life of milk.