LOS ANGELES (CBSLA) — Four years after a deadly terrorist attack, San Bernardino has been named the most dangerous city in California, and the third most dangerous in the country.

A study by financial services website WalletHub compared 182 cities — including the 150 most populated cities, plus at least two of the most populated cities in each state — across three categories: home and community safety, natural disaster risk and financial safety.

READ MORE: Joseph Jimenez Pleads Not Guilty By Reason Of Insanity In Corona Movie Theater Double Murder

Most Dangerous Cities — United States:

READ MORE: Cheryl Burke Tests Positive For COVID Ahead Of 'Dancing With The Stars' Performance
  1. St. Louis, Missouri (182)
  2. Fort Lauderdale, Florida (181)
  3. San Bernardino, California (180)

Most Dangerous Cities — California:

  1. San Bernardino, California (180)
  2. Los Angeles, California (171)
  3. Oakland, California (149)

Least Dangerous Cities — United States:

MORE NEWS: Cinematographers' Union Board Votes To Support Potential Hollywood Workers Strike
  1. Columbia, Maryland (1)
  2. Yonkers, New York (2)
  3. Plano, Texas (3)

Least Dangerous Cities — California:

  1. Irvine, California (29)
  2. Fremont, California (30)
  3. Chula Vista, California (42)