VIENNA (NBC News) – Iran and world powers capped a decade-long dispute by reaching a historic deal early Tuesday for Tehran to curb its nuclear program in exchange for the easing of economic sanctions.

The Islamic republic has been negotiating with the U.S., Britain, France, Germany, Russia and China for years, with diplomats most recently extending deadline after deadline in hopes of arriving at a workable plan.

President Barack Obama said the deal with Tehran ensures that “every pathway to a nuclear weapon” had been cut off.

“We have stopped the spread of nuclear weapons in this region,” he said in an early-morning statement which — in a rare move — was carried on Iranian television.

Click here to continue reading this story from NBC News.