A P-N junction is the boundary interface between a p-type semiconductor (with excess positive charge carriers) and an n-type semiconductor (with excess negative charge carriers) within a semiconductor device.