Madge Undersee, the daughter of the mayor of District 12, gave Katniss the Mockingjay pin before the 74th Hunger Games.
It was a gift from Madge to Katniss, meant as a symbol of hope and rebellion. The Mockingjay pin is a powerful symbol throughout the Hunger Games trilogy, representing the growing resistance against the Capitol.