The United States District Court building is seen as Enrique Marquez appears at a detention hearing in federal court Riverside, Calif., Dec. 21, 2015. 
Photo by David McNew/AFP/Getty

Enrique Marquez, friend of San Bernardino shooters, denied bail

Enrique Marquez Jr., a friend and former neighbor of the couple who killed 14 people this month in San Bernardino, California, was denied bail Monday on charges of conspiring to provide material support to terrorism and other counts.

Marquez, 24, bought the .223-caliber DPMS model AR-15 and the Smith & Wesson M&P15 assault-style rifles used in the shootings at the Inland Resource Center on Dec. 2.

The shooters, Syed Rizwan Farook and his wife, Tashfeen Malik, were killed in a confrontation with police a few hours later.

RELATED: Obama meets with families of San Bernardino attack victims

U.S. Magistrate Judge David Bristow sided with prosecutors in Riverside, California, saying that while Marquez didn’t appear to be a flight risk, the charges that he conspired with Farook to commit terrorist acts in 2011 and 2012 indicated that he could be a threat to the community.

If he’s convicted, Marquez could face 15 years in federal prison on the terrorism charge and 10 years each on two other charges: making a false statement in connection with the acquisition of the rifles and immigration fraud for what authorities said was a sham marriage to a distant relative of Farook’s.

This article first appeared at NBCNews.com

MSNBC Live, 12/18/15, 6:16 PM ET

New questions about friend of SB shooter

New details - and new questions - are emerging regarding the San Bernardino shooters’ prior plots, and the connection between one of the shooters and a neighbor. NBC’s Morgan Radford and terrorism expert Brian Levin join to discuss.

California, Gun Violence and San Bernardino shooting

Enrique Marquez, friend of San Bernardino shooters, denied bail