A P-N junction is typically formed through a process called doping, where specific impurities are introduced into a semiconductor material to alter its electrical properties and create regions of excess positive and negative charge carriers.