Diodes are like one way valves. Current flows from left to right , in the direction of the arrow, and blocks current in the opposite direction. We often use diodes to stop one circuit interfering with another.
If you put AC current on the base then it will only allow the positive part through and visa versa.