The article indicates the impact of investments on the economy of Ukraine and investigates the investment potential in the conditions of a protracted war and the investment attractiveness of Ukraine in the conditions of a prolonged war. The important mechanism for stimulating investment activity, namely state support of the authorities in the form of compensation of a part of the interest rate and provision of state guarantees for loans is considered. Negative factors that significantly affected the process of attracting investments in the development of the economy, namely the development of the country and its economy in the conditions of war, are also presented; lack of protection and state guarantee mechanisms for foreign investments. Nevertheless, the main problems that concern investors when investing in the military economy have been revealed. The article describes why Ukraine remains attractive for investment in the face of a full-scale invasion and its potential in the face of a protracted war. It indicates how to ensure the stable development of investment attractiveness. The platform for potential foreign investors is mentioned, which collects more than 500 investment projects and opportunities in 10 sectors of the economy that have significant investment potential, namely: the defense industry, metallurgy and metal processing, energy, natural resources, agricultural sector, transport infrastructure, manufacturing, woodworking and furniture manufacturing, pharmaceuticals, advanced technologies. It also indicates which sector suffered the least losses from the war and retained 95% of contract volumes. This paper describes what is necessary to ensure the stable development of investment attractiveness. It is stated that Ukraine should reform its economy and improve the business environment by improving the legal system, fighting corruption, ensuring intellectual property rights and promoting entrepreneurship and innovation. Possible ways to attract investments in the conditions of a long-term war are indicated. It analyzes how Ukrainians invest during the war and which investment strategy they choose. It is noted that the agreement with the G7 and the EU on investment guarantees provides for the receipt of long-term and economically beneficial loans from international financial organizations, such as the World Bank, the European Bank for Reconstruction and Development, and the European Investment Bank.