Republican presidential candidate and Florida Sen. Marco Rubio said Wednesday that President Obama reached a nuclear deal with Iran with one goal in mind.

"For him, this whole deal, you know what it is? It is an exhibit in his presidential library," Rubio said on Fox News' "America's Newsroom," adding, "that's what [President Obama] wants to be able to do – is say, 'this is what I achieved, peace in our time, this big deal with Iran.'"

Hours after Obama announced the Iranian deal on Tuesday, Rubio joined a slew of lawmakers from both sides of the aisle who condemned the agreement and called on Congress to vote against it.

The top-tier candidate also blasted the deal in a column for Breitbart Tuesday evening, saying he would "abrogate [the] dangerous agreement and force Iran to permanently end its nuclear ambitions," if elected president.

"I will give Iran a choice: change your behavior, or face the collapse of your economy due to U.S. pressure," he wrote.