The 2009 flu pandemic or swine flu was an influenza pandemic that lasted from early 2009 to late 2010, and the second of the two pandemics involving H1N1 influenza virus (the first of them being the 1918–1920 Spanish flu pandemic).