Yeah, that’s a difficult question to answer unless you understand physics. Which I don’t.
I suggest you read up on ‘depletion region’ and ‘P-N junctions’.
It’ll give you a better understanding.
In any case, you don’t need ‘the’ diode.
LEDs are diodes (light emitting diodes), so won’t work if...