To create a P-type semiconductor, a tetravalent element like germanium is doped with a trivalent impurity (like Boron, Aluminum, or Indium). The trivalent atom has one fewer valence electron, creating a "hole" that acts as a positive charge carrier.