The crowding out effect occurs when increased government spending leads to a reduction in private sector investment. This happens because government borrowing to finance spending can raise interest rates, making it more expensive for individuals and businesses to borrow money. As a result, the availability of funds for private investment decreases, which can stifle economic growth.