The squeezing properties in the system of the coherent optical field interacting with two identical two-level atoms are studied via time evolution operator and numerical method . The results indicate that the squeezing of optical field depends on the degree of entanglement of two identical atoms. At certain particular time, for some special numbers of photons, optical field can be squeezed entirely in any entangled state of two atoms. In some cases, the optical fields can not be squeezed.