irritation after shaving

every time I shave I get really bad irritation, is there way to prevent this? and what can I do for my irritation to go away?