The interaction system of four identical two-level atoms and two-dimensional coupled single-mode optical cavities is studied in which the atoms are trapped separately in the cavities, and each atom resonantly interacts with the cavity via a one-photon hopping. Negativity is used to quantify the degree of entanglement between two subsystems. The influences of cavity-cavity coupling coefficients on the atom-atom entanglement and the cavity-cavity entanglement are discussed based on the numerical calculation results. The obtained results show that the atom-atom entanglement is strengthened while the cavity-cavity entanglement is weakened with the increase of cavity-cavity coupling coefficient.