A judge says two men will go to trial on involuntary manslaughter charges in a California building fire that killed 36 partygoers.

Alameda County Superior Court Judge Jeffrey Horner ruled Thursday that prosecutors presented enough evidence to move forward with the criminal case against Derick Almena and Max Harris.

Horner called the building a death trap.

Almena rented the Oakland warehouse known as the Ghost Ship that burned on Dec. 2, 2016, during an electronic music concert. It was the worst building fire in the U.S. in more than a decade.

The warehouse had been illegally converted into living space for artists. Prosecutors say Almena and Harris deceived the building's owner, police and fire officials about people living there.

The two have pleaded not guilty.