Gunboat diplomacy is the use of military force or the threat of force in international relations to achieve a country's goals, while dollar diplomacy involves the use of economic or financial means, such as investments, loans, or aid, to exert influence over other countries. Gunboat diplomacy is more coercive and direct, while dollar diplomacy focuses on economic incentives to achieve foreign policy objectives.