We use a disordered antiferromagnetic spin-1 / 2 chain with anisotropic exchange coupling to model an array of interacting qubits. All qubits have the same level spacing, except two, which are called the defects of the chain. The level spacings of the defects are equal and much larger than all the others. We investigate how the entanglement between the two defects depends on the anisotropy of the system. When the anisotropy coupling is much larger than the energy difference between a defect and an ordinary qubit, the two defects become strongly entangled. Small anisotropies, on the contrary, may decrease the entanglement, which is, in this case, also much affected by the number of excitations. The analysis is made for nearest-neighbor and next-nearestneighbor defects. The decrease in the entanglement for nearest neighbor defects is not very significant, especially in large chains.