The rate of homicide deaths for young people in the U.S. sharply increased at the beginning of the COVID-19 pandemic, a Centers for Disease Control and Prevention study of violent deaths over two decades found.

The study also found suicide rates were at a record high over the past several decades for young adults at the start of the pandemic as many across the country stayed home amid lockdowns and closures of businesses, schools and other public facilities.

Here’s what the study examining 20 years of violent deaths among young people found:

Homicides in older teens rose to a record high

The homicide rate for older teenagers, those 15 to 19, rose to its highest point in nearly 25 years during the early years of the pandemic. All age groups saw the largest annual increase in homicides from 2019 to 2020.

The homicide death rate went from 8.9 deaths per 100,000 older teens in 2019 to 12.3 deaths per 100,000 in 2020. It rose again to 12.8 deaths per 100,000 in 2021, the highest rate since 1997.

Researchers found that suicide and homicide rates for older teens and young adults were far higher than for teens in the 10-14 age group. In 2019, about 7.8 deaths per 100,000 for the 10-24 age group were homicides. That jumped by 37% – the largest increase in the 20-year study – to 10.7 per 100,000 in 2020.

Suicide rates had surpassed homicide rates for young people around 2010, but researchers found the rates were similar by 2021 because of the increase in homicides.

Suicide increase most profound among young adults over 20

Suicides among young people remained stable from 2001 to 2007, then increased 62% from 2007 to 2021, researchers found. In 2007, the suicide rate for people ages 10 to 24 was 6.8 per 100,000. That reached 11 deaths per 100,000 in 2021.