A country that enacts trade restrictions against another country is an example of a sanction.
Sanctions are political and economic barriers that countries or economic blocs impose on a particular country that does not act in accordance with the internationally agreed democratic, commercial or ideological ordering. This is a type of punishment that aims to affect the economy of a country to force it to act according to the diplomatic rules.
For example: The US has imposed economic sanctions on the Venezuelan government, which acts as a dictatorship in that country, with the aim of forcing a new election and reestablishing democracy.