To be more precise, such countries were forced to accept unequal treaties through gunboat diplomacy (threatening diplomatic negotiation backed with military force such as battleships and cannons).
具体的には不平等条約を砲艦外交（軍艦や大砲といった軍事力を背景に行われる恫喝的な外交交渉）によって強制された。