During the Spanish-American war, U.S. forces launch their invasion of Puerto Rico, the 108-mile-long, 40-mile-wide island that was one of Spain's two principal possessions in the Caribbean. With little resistance and only seven deaths, U.S. troops under General Nelson A. Miles were able to secure the island by mid-August.
Algeria was a French colony back in the day, so obviously no colonial country would want any of its colonies to gain independence. Just take a look at Britain and America - America consisted mostly of colonists from England who then decided they wanted freedom to become a separate country. Algeria used to belong to France, which means that all of its resources and money also belonged to France, which is something it didn't want to lose.
Answer:
One way the could is by forcing trade deals with other weaker countries.
These trade deals where sometimes about having access to a countries resources or just about having access to an important ones like oil.
These deals where unfair to the nation they are getting forced on.
Example - The USA forcing Japan to trade with the west by showing up to Japan's shores with ships.