How often should a wheel alignment be done?

I generally have it done when I have some reason to suspect a problem or before putting on new tyres.