Say we have a silcon pn junction (diode) - i.e., a block of p-type on
left, attached to a block of n-type semiconductor on right:
anode ------[ p | n ]------ cathode
Because of diffusion we get a barrier potention at the junction, which
makes the n-side/cathode 0.7V higher...