Governing bodies often have regulations and financial sanctions in place that prohibit transactions with certain high-risk countries.
In most cases, the processing bank will decline transactions that originate from these countries. In the rare instance that the processing bank authorizes the transaction, the funding bank will prevent it from settling.
The restricted countries vary depending on the country where you or your business is domiciled.