An ISIS wannabe who fled the ​United States to join the terrorist group is back​ ​–​ ​and facing federal charges.

Bernard Augustine trekked from California to Tunisia in February ​​2016 in hopes of joining the ​bloodthirsty killers, prosecutors said.

Yet the 21-year-old’s plans were foiled as soon as his flight landed ​– he was​ immediately​ thrown in jail by Tunisian authorities.

Augustine​ had been behind bars in the North African country​ until he was extradited back to the US. On Tuesday, he was arraigned in Brooklyn federal court on charges of attempting to provide material support to a terror organization.

Augustine, sporting a sweatshirt bearing crossed swords and a skull, did not enter a plea. He was held without bail.

His lawyer, Sam Jacobson, declined to comment.

Though Augustine never succeeded in joining the group, court documents say that federal agents founds caches of violent propaganda on his laptop in 2016, and discovered he’d also been a frequent contributor on radical Islamist blogs.

He faces up to 20 years behind bars if convicted.