WASHINGTON—The State Department will close the U.S. consulate in Basra, Iraq, and evacuate the diplomats stationed there, citing security risks from Iran, according to administration officials.

The U.S. post in the southern Iraqi city, one of three U.S. diplomatic missions in the country, will be shuttered following mounting, credible threats from Iranian and Iranian-backed forces in Iraq, a senior administration official said.

Secretary...