This paper investigates the entanglement of a two-qutrit Heisenberg XXX chain with nonlinear couplings under an inhomogeneous magnetic field. By the concept of negativity, we find that the critical temperature increases with the increase of inhomogeneous magnetic field b. Our study indicates that for any |K| > |J|, or |K| < |J| entanglement always exists for certain regions. We also find that at the critical point, the entanglement becomes a nonanalytic function of B and a quantum phase transition occurs.