We investigate the effect of the dipole-dipole interaction on the dynamic properties and the atomic coherent trapping of a two-identical-atom system in the presence of a laser field by means of quantum-electrodynamics theory. The influence of the dipole-dipole interaction on the collapses and revivals of the atomic population is revealed. The conditions of the atomic coherent trapping are given. A way to measure optically the coupling strength between the atoms is pointed out. We also show that the effect of the dipole-dipole interaction may be scre...