The general concept is that the immune system has regulatory systems that keep us from attacking ourselves (i.e. autoimmune disorders)
Clonal selection is one way our immune system ensures the production of antibodies against non-self antigens, instead of self-antigens. B-cells are derived (differentiate) from a hematopoietic stem cell (HSC). During this differentiation process, many types of B-cells are produced, each with different receptors capable of rearrangement. This rearrangement allows B-cells to respond to a variety of antigens. Here, if there's a B-cell that contains receptors for your own (self) antigens, then they will be destroyed. The remaining B-cells will not be destroyed and stay inactive, unless activated by a foreign antigen encounter. If a non-self antigen binds to the B-cell on a particular receptor, the B-cell will differentiate to specifically respond to that antigen, producing antibodies against it.
The similar thing happens with T-cells, I think. Also, for T-cells, there are T-suppressor cells are involved in similar regulatory strategies.