How is transistors used as switch?

We know that base input must be more than 0.7Vdc (approx.) in order to turn on TRANSISTOR.Hence by controlling base voltage , it can be used as switch.