An N-type semiconductor is created by doping a neutral crystal with donor atoms. Although it has free electrons as majority carriers, the overall material remains electrically neutral because the positive charge of the atomic nuclei balances the negative charge of the electrons.