how does phosphorylation alter protein activity?

I'm in a cell biology course and phosphorylation happens a lot. Why is the phosphoryl group so special? What does it do on the molecular level?