What would cause a car to idle but die when you step on the gas?

It could be need of a tune up or a gas filter.