The COVID-19 pandemic has accelerated the shift toward digital services. Meanwhile, the race for technological and economic leadership has heated up, with risks of decoupling that could set back trade and growth and hinder the recovery from the worst global recession since the Great Depression. This paper studies the conditions under which a country may seek to erect barriers—banning imports or exports of cyber technologies—and in effect promote decoupling or deglobalization. A well-known result is that banning imports may be optimal in monopolistic sectors, such as the digital sector. The novel result of this paper is that banning exports can also be optimal, and in some cases superior, as it prevents technological diffusion to a challenger that may eventually become the global supplier, capturing monopoly rents and posing cybersecurity risks. However, export or import bans would come at a deleterious cost to the global economy. The paper concludes that fostering international cooperation, including in the cyber domain, could be key to avoiding technological and economic decoupling and securing better livelihoods.