A model containing two two-level atoms and a single-mode cavity is considered, and the effect of the time-dependent atom-field couplings on entanglement between the two atoms is studied. The results indicate that both for one-photon processes and for two-photon processes, the disappearance of the initial entanglement is delayed due to the linear modulation of the atom-field coupling coefficients as compared to the constant coupling model. The delayed time of the disappearance of the initial entanglement for the two-photon processes is much longer than that for the one-photon processes in the case of adiabatic variation.