This study aims to classify rice import data in Indonesia based on the main country of origin using the K-Medoids algorithm. The rice import data used in this study covers the last six years (2017-2022), which is quantitative data, namely rice import data in Indonesia quoted from the Indonesian Statistical Publication, and processed based on the customs archives of the Directorate General of Customs and Excise. The K-Medoids method was chosen because of its ability to handle outliers and provide more stable clustering results compared to other clustering algorithms. The results of the analysis show that there are three main clusters of rice-supplying countries in Indonesia. The first cluster consists of countries with high import volumes, the second includes countries with moderate import volumes, and the third comprises countries with low import volumes. These findings provide important insights for the government and industry players in formulating rice import strategies, particularly in choosing the country of origin of imports and determining tariff policies. In addition, the results of this clustering can be used as a basis for making decisions regarding the diversification of rice import sources to increase national food security.