In a pure (intrinsic) Si or Ge semiconductor, each nucleus uses its four valence electrons to form four covalent bonds with its neighbours. Each ionic core, consisting of the nucleus and non-valent electrons, has a net charge of +4, and is surrounded by 4 valence electrons. Since there are no excess electrons or holes, In this case, the number of electrons and holes present at any given time will always be equal. Note each +4 ion is surrounded by four electrons.
Now, if one of the atoms in the semiconductor lattice is replaced by an element with three valence electrons, such as a Group 3 element like Boron (B) or Gallium (Ga), the electron-hole balance will be changed.
This impurity will only be able to contribute three valence electrons to the lattice, therefore leaving one excess hole. Since holes will "accept" free electrons, a Group 3 impurity is also called an acceptor.
A semiconductor doped with an acceptor. An excess hole is now present. Because an acceptor donates excess holes, which are considered to be positively charged, a semiconductor that has been doped with an acceptor is called a p-type semiconductor.