I have never really been bullied, but as I see it there are two ways of getting out of it.
1. Fight back.
Pros: they might stop because they see that you will not take any crap from them and it also show that you're not a coward.
Cons: They might take this as an opportunity to bully you even more since you're getting angry.
2. Ignore them, probably the best way.
Pros: They will soon learn that it's of no use to bully you since you simply do not care and then they will most likely lose interest in you.
Cons: They might see you as someone they have control over and that may make you a target for various things.