A deficit occurs when a country buys more products and services than it sells. This can be through imports and exports or through domestic services such as the creation of roads or the distribution of benefits to citizens in the form of food coupons, retirement benefits, or medical insurance payments.