We study how domestic and global output gaps affect CPI inflation. We use a New-Keynesian Phillips curve framework which controls for nonlinear exchange rate movements for a panel of 26 advanced and 22 emerging economies covering the 1994Q1-2017Q4 period. We find broadly that both global and domestic output gaps are significant drivers of inflation both in the precrisis (1994)(1995)(1996)(1997)(1998)(1999)(2000)(2001)(2002)(2003)(2004)(2005)(2006)(2007)(2008) and post-crisis (2008)(2009)(2010)(2011)(2012)(2013)(2014)(2015)(2016)(2017) periods. Furthermore, after the crisis, in advanced economies the effect of the domestic output gap declines, while in emerging economies the effect of the global output gap declines. The paper demonstrates the usefulness of the New Keynesian Phillips curve in identifying the impact of global and domestic output gaps on inflation. JEL-Codes: E310, E580, F620. We would like to thank Paul Beaudry, Francesco Zanetti and participants at a seminar at the Bank for International Settlements for useful comments and discussions. The views expressed are those of the authors and do not necessarily reflect those of the BIS.