What are some ways to avoid owing taxes?

The last few years I've owed federal taxes (in the thousands) after all of my deductions.  Any tips on avoiding this?