What is the “crowding out” effect of budget deficits?

What is the “crowding out” effect of budget deficits? What determines whether crowding out leads to a minor or major reduction in the impact of expansionary fiscal policies on Aggregate Demand?