How do diodes work?

A diode has a very high resistance to current flow in one direction and a very low resistance to current flow in the opposite direction