Violent persecution erupted in the form of the 1956, 1958, 1977, 1981 and 1983 anti-Tamil pogroms, as well as the 1981 burning of the Jaffna Public Library. These were carried out by the majority Sinhalese mobs often with state support, in the years following Sri Lanka's independence from the British Empire in 1948. Shortly after gaining independence, Sinhalese was recognized as the sole official language of the nation. After a 26-year military campaign, the Sri Lankan military defeated the Tamil Tigers in May 2009, bringing the civil war to an end.