The alleged West Side bike-path terrorist told a Manhattan judge on Friday that “Islam is leading a war,” and said he could only be judged by Allah.

As a hearing was wrapping up, Sayfullo Saipov, who could face the death penalty for mowing down dozens of pedestrians and bicyclists with a rented Home Depot truck, killing eight last Halloween, raised his hand in the air to speak to Manhattan federal Judge Vernon Broderick.

Saipov, 30, said through a translator, “The judgments made here are not important to me because they are judgments of living things . . . not by Allah, made by weak minds.”

Broderick interrupted Saipov to tell him his statements can be used against him at trial.

Saipov responded, “I understand you, but I’m not worried about this at all.”

He continued, “Islamic State, in order to impose Sharia on Earth, is leading a war. Islamic State is not fighting for land, as some say, or oil. They have one purpose. It’s fighting to impose Sharia on Earth.”

Earlier, Saipov pleaded not guilty to a superseding indictment that added attempted murder and assault in aid of racketeering charges to his case.

Broderick set his trial for Oct. 7, 2019.