- We propose a protocol for the deterministic generation of entanglement between two ensembles of nuclear spins surrounding two distant quantum dots. The protocol relies on the injection of electrons with definite polarization, their sequential interaction with the nuclear ensembles of each quantum dot for a short time, and the coherent transfer of each electron from one quantum dot to the other. Computing the exact dynamics for small systems, and using an effective master equation and approximate nonlinear equations of motion for larger systems, we are able to confirm that our protocol indeed produces entanglement for both homogeneous and inhomogeneous systems. Last, we analyze the feasibility of our protocol in several current experimental platforms.