Briefly explain how a p-type semiconductor is formed

Briefly explain how a p-type semiconductor is formed