An Al Qaeda member attempted to get a conviction for plotting to bomb city subways overturned on the grounds that he didn’t like his attorney — himself.

Abid Naseer — who is serving a 40-year sentence for taking part in a multi-city bombing plot — cannot use the fact that he unsuccessfully represented himself at trial as an excuse to get his conviction thrown out, a federal appeals court ruled.

The wannabe terrorist made a “knowing and intelligent decision” to represent himself in his 2015 trial, a three-judge panel from the US Court of Appeals for the Second Circuit said in a brief ruling issued on Tuesday.

“Naseer was repeatedly informed before trial that he could reconsider his decision to waive his right to counsel,” the judges wrote.

The failed bomber also claimed that prosecutors should not have submitted documents that detailed the plot that were found in Osama bin Laden’s compound because they did not mention his name specifically.

But the court said the documents helped to establish that Naseer was part of a terrorist conspiracy.

As part of the foiled plan, Nasser was supposed to arrange an attack on a shopping mall in the UK.

Meanwhile, other operatives were to bomb the New York subway system and a newspaper in Denmark, court papers state.

Naseer was convicted with the help of testimony from another would-be bomber who was arrested for participating in the subway bombing plot and began cooperating with authorities.

Naseer’s trial also included courtroom testimony from British secret agents who donned garish disguises.

Attorney James Neuman represented Naseer in the early stages of the case, at his sentencing and in his bid to get the conviction thrown out on appeal. He declined to comment.