When Si or Ge is doped with a trivalent impurity like Al, B, In, etc. the dopant has one valence electron less than Si or Ge and, therefore, this atom can form covalent bonds with neighboring three Si atoms but does not have any electron to offer to the fourth Si atom, creating a hole available for conduction