Factbox: Major shootings in the United States

(Reuters) - A man who was thrown out of the U.S. Air Force for beating his wife and child fatally shot 26 people on Sunday at a rural Texas church where his in-laws worshipped before killing himself, police said, in the latest in a string of U.S. mass shootings.

The First Baptist Church massacre was the deadliest in the modern history of Texas. Below are some of the bloodiest U.S. mass shootings in recent years, ranked by death toll:

LAS VEGAS, Oct. 1, 2017 - A gunman opens fire on a country music festival from a 32nd floor hotel suite, killing 58 people and wounding another 564 others before taking his own life.

ORLANDO, June 12, 2016 - A gunman fatally shoots 49 people at gay nightclub Pulse before he is shot dead by police.

VIRGINIA TECH, April 16, 2007 - A gunman slaughters 32 people and kills himself at Virginia Tech, a university in Blacksburg, Virginia.

SANDY HOOK, Dec. 14, 2012 - A man fatally shoots his mother, then kills 20 children, six adults before killing himself at Sandy Hook Elementary School in Newtown, Connecticut.

SAN BERNARDINO, Dec. 2, 2015 - A husband and wife kill 14 people at a workplace holiday party in San Bernardino in Southern California before dying in a shootout with police.

COLUMBINE, April 20, 1999 - Two teenagers rampage through Columbine High School in Jefferson County, Colorado, fatally shooting 12 students and a teacher and wounding more than 20 others before killing themselves.

BINGHAMTON, April 3, 2009 - A Vietnamese immigrant opens fire at an immigrant services center in Binghamton, New York, killing 13 people and wounding four. He then kills himself.

FORT HOOD, Nov. 5, 2009 - An army major and psychiatrist opens fire at Fort Hood, a U.S. Army base in Texas, killing 13 people. He is sentenced to death.

WASHINGTON, D.C., Sept. 16, 2013 - A former Navy reservist working as a government contractor kills 12 people at the Washington Navy Yard. He is shot dead by police.

COLORADO, July 20, 2012 - A masked gunman kills 12 people and wounds 70 after he opens fire inside a midnight premiere of Batman film "The Dark Knight Rises" at a multiplex movie theater in Aurora, Denver. He receives multiple life sentences.

WASHINGTON, D.C., October 2002 - Two men ambush 13 people, killing 10 of them, in sniper-style shootings that terrorize the Washington area for three weeks. One sniper was executed and the other was sentenced to life in prison.

OREGON, Oct. 1, 2015 - A man opens fire on the campus of Umpqua Community College in southwest Oregon, killing nine people before he is shot dead by police.

CHARLESTON, June 17, 2015 - A white supremacist kills nine black churchgoers at a historic, predominantly black church in Charleston, South Carolina.

WACO, May 17, 2015 - Rival motorcycle gangs kill nine at a restaurant in Waco, Texas. More than 170 people are arrested.

WISCONSIN, Aug. 5, 2012 - A white supremacist kills six worshippers in a Sikh temple in Oak Creek, Wisconsin. The gunman kills himself.

TUCSON, Jan. 8, 2011 - Then-U.S. Representative Gabrielle Giffords is the target of an assassination attempt by a gunman in Tucson, Arizona. Six people are killed and 13, including Giffords, are wounded.

ISLA VISTA, May 23, 2014 - A college student kills six people, three in his apartment and others on the streets of this small California town. The mentally ill gunman commits suicide.

AMISH school, Oct. 2, 2006 - A gunman kills five girls in a one-room Amish schoolhouse in Nickel Mines, Pennsylvania, before killing himself.

DALLAS, July 7, 2016 - A U.S. military veteran kills five police officers and wounds seven more in the deadliest attack on police. The suspect is killed by a police bomb.

(Compiled by Jeffrey Benkoe, Jonathan Oatis and Daniel Wallis)