This paper investigates the impact of fiscal shocks on inflation, using a large panel of 139 countries over the period 1970–2021. First, both headline and core measures of inflation increase in response to expansionary shifts in the fiscal policy stance. Second, we split the sample and observe an intriguing pattern that fiscal policy shocks are primarily significant in developing countries. Third, the inflationary impact of fiscal policy shocks is dependent on fiscal space and economic conditions, as well as monetary policy type, exchange rate regimes and fiscal rules, at the time of the shock. We confirm these results by using the narrative approach and forecast errors, as well as cyclically- adjusted data on government revenues and non-interest expenditures, to identify exogenous changes in fiscal policy. The analysis has several important policy implications: (i) fiscal policy is a critical anchor of macroeconomic stability; (ii) fiscal policy should be used with care in aggregate demand management as it has significant effects on inflation, which are highly dependent on fiscal space and economic conditions; and (iii) flexible exchange rates and rule-based policymaking provide greater resilience to inflationary shocks.