The military aggression of russia against Ukraine has a significant negative impact on the agricultural sector of the economy, which is one of the key industries for Ukraine. Among the consequences of this aggression are a decrease in production levels, an increase in costs for security and infrastructure restoration, an increased risk of losing personnel and crops, as well as complications in the export of products. The purpose of this study is to assess the state of the agricultural sector under the conditions of war and to investigate the peculiarities of the activities and adaptation to war of individual agricultural producers, using farmers as an example. To achieve this goal, the dialectical method of cognition of economic processes, the basic principles of modern economic theory, and scientific works of domestic and foreign scientists studying the impact of war on the development of the agricultural sector of the economy were used. A sociological research method, in particular interviews, was used to achieve the research goal. The article examines the role of the agricultural sector in the Ukrainian economy and global food security, analyzes the impact of the war on the agricultural sector, and characterizes the current state of agricultural activity under the conditions of war using farmers as an example. According to the obtained data, the impact of war on the agricultural sector is significant and has various economic, social, and environmental consequences. The study shows that some commodity producers, using farmers as an example, have adapted to the war and have been able to maintain their market positions, while others have suffered significant losses and could not function properly. This research can be an important source of information for the development of state policy on support for agricultural commodity producers, specifically farmers, under the conditions of war and post-war recovery. It is necessary to consider the possibility of attracting investments in the agricultural sector, supporting farmers through a credit system, and cooperating between farmers