. This study analyzes the effect of the Kerr medium and Stark shift on the entanglement between two two-level atoms and a single-mode cavity in a quantum model. The findings demonstrate that the entanglement between the atoms varies periodically over time, with the periods affected by the Kerr medium and Stark shift. The Kerr medium and Stark shift hinder atom disentanglement, resulting in a prolonged stationary entangled state. The Stark shift can also enhance atom-atom entanglement for partially entangled states. These findings reveal that the Kerr medium and Stark shift can effectively control the entanglement between two atoms. Moreover, weak measurement strength impacts quantum particles' entanglement, which decreases over time. Quantum discord is more affected by weak measurement strengths than entanglement, decreasing until a critical point and increasing with a further rise in weak measurement strengths.