SAN JOSE — Prosecutors have filed murder charges against five teens in a deadly gang-related shooting near downtown San Jose after their arrests earlier this week capped a multicity chase in which they reportedly tossed a handgun onto the freeway, authorities said.

Three boys and two girls — San Jose residents whose ages range from 17 to 14 — will be tried as adults in the death of 20-year-old Juan Luna, who was killed in a drive-by shooting the morning of March 7 near Oak Street and South Almaden Avenue in what San Jose police believe was fueled by gang motives.

Friday, police identified the defendants as Jacob Lapenias, 17; Arturo Garcia-Laredo, 14; Michael Anaya, 15; Thalia Ruiz, 16; and Jasmine Rosales, 17. Prosecutors also added gang enhancements to the charges for all five.

Luna and one other man were shot around 2:10 a.m. that morning. The other man survived. The neighborhood has historically battled gang problems. After the slaying, the Mayor’s Gang Prevention Task Force deployed interventionists and police ramped up their gang patrols to quell tensions and stave off retaliatory attacks.

Even so, a man was shot and wounded two nights later, on Monday, at a vigil at the shooting site.

About 90 minutes after that shooting, San Jose police patrolling near Capitol Expressway and Story Road spotted a Ford Fusion matching the description of a vehicle seen driving away from Luna’s shooting. That spurred a 25-mile high-speed chase on Interstate 680 to Bernal Avenue in Pleasanton, where the Fusion blew a tire and the five occupants, the teens now charged with murder, surrendered to authorities.

Authorities say that during the chase, a handgun was tossed from the Ford near the Washington Boulevard exit and later recovered by police.

While the shooting and chase were approximate in time, investigators have not announced any indication that the teens were connected to the attack at the vigil site.

By charging the juveniles as adults, each of the teens could face a lengthy prison sentence, as opposed to rehabilitation in the juvenile justice system, if convicted. When deciding to charge a juvenile as an adult, the Santa Clara County District Attorney’s Office relies on a panel of four senior prosecutors who must come to unanimous agreement.

In 2014 there were 41 juveniles charged as adults. Arturo Garcia-Laredo becomes the fourth boy age 14 to be charged as an adult in Santa Clara County since 2012.

Staff writer Mark Gomez contributed to this report. Contact Robert Salonga at 408-920-5002. Follow him at Twitter.com/robertsalonga.