At the junction, the free electrons in the n-type are attracted to the positive holes in the p-type. They diffuse into the p-type, combine with the holes, and cancel each other out. In a similar way the positive holes in the p-type are attracted to the free electrons in the n-type. The holes diffuse into the n-type, combine with the free electrons, and cancel each other out. The positively charged, donor, dopant atoms in the n-type are part of the crystal, and cannot move. Thus, in the n-type, a region near the junction becomes positively charged. The negatively charged, acceptor, dopant atoms in the p-type are part of the crystal, and cannot move. Thus, in the p-type, a region near the junction becomes negatively charged. The result is a region near the junction that acts to repel the mobile charges away from the junction through the electric field that these charged regions create. The regions near the p–n interface lose their neutrality and most of their mobile carriers, forming the space charge region or depletion layer (see figure A).