In the context of martial law, trade in goods in Ukraine requires a number of changes to protect national interests and the domestic market. The purpose of the article is to identify the key features of foreign economic activity regulation in Ukraine during the war. The Global Trade Alert database for the period of research 2009-2023 was used to conduct the study and analyze the regulation of Ukraine's foreign trade. The results indicate a significant increase in the share of Ukraine's exports and imports to European countries, particularly to the EU, and to Asian countries, which required adjustments to the foreign trade regulation policy from 2011 to 2021. During the period under study, trade policy was aimed at implementing liberalization and protectionist measures simultaneously, which were characterized by an average level of efficiency for certain product groups. During the period of martial law in 2022, 10 liberalization measures and 9 protectionist measures were introduced in trade in goods, particularly for certain European countries. The restrictive measures concerned Russia, European countries, Canada, the United States, and other countries, and were aimed at protecting the domestic market. The key sectors of liberalization in 2022 were cereals, products made of polymeric materials, certain types of equipment and machinery, equipment for electricity distribution, and certain types of fabrics. Legal changes during martial law are determined by domestic demand and external supply for certain groups of goods. The key measures regulating trade in goods in Ukraine are tariff measures, including export and import licensing requirements; export quotas and taxes; import tariffs; and domestic import taxation. In general, some of the regulatory measures discriminate against foreign commercial interests, while others ensure liberalization on a non-discriminatory basis. Non-tariff measures related to exports and imports mainly include sanitary and phytosanitary measures, technical barriers to trade, and precautionary measures.