Judge Andrew Napolitano tonight weighed in on the decision to swap Sgt. Bowe Bergdahl for five Gitmo detainees, telling Megyn Kelly that he believes the Obama administration “violated the federal statute which makes criminal providing material assistance to a terrorist organization.”

Napolitano explained, “He violated the law by allowing assets to go back to a terrorist organization. You can’t erect a telephone pole, you can’t repair a laptop, you can’t repair a tooth if you’re a dentist for these organizations without violating federal statute.”

Hear more of his analysis in the video above.

Get more on Bergdahl's release from Fox News:

Fmr. Army Special Forces Commander: Bergdahl Owes Soldiers an Explanation

Gutfeld: 'Bergdahl Swap Is Like a Common Core Math Problem'

Graham on Bergdahl Prisoner Swap: US Released the 'Taliban Dream Team'

'Worst of the Worst': Who Did U.S. Release From Gitmo for Bergdahl?