<p>The problem of the portfolio is how to choose stocks and determine their weights in order to generate maximum returns with minimal risk. Portfolios are formed by selecting stocks that have different characteristics. K-Medoids Clustering can be used to group data sets that contain outliers. Validate cluster results using the Davies Bouldin Index to determine the best number of clusters. Portfolio weighting is determined using the Mean-VaR method by taking into account the expected return value and minimizing the VaR risk value. Stocks are grouped based on Return on Assets, Return on Equity, Debt to Asset Ratio, and Debt to Equity Ratio. The results of cluster formation on the Jakarta Islamic Index stocks obtained six portfolio constituent stocks based on the highest expected return value from each cluster, consisting of PTBA, ADRO, AKRA, EXCL, PTPP, and UNVR. The results of calculating the weight of the optimal portfolio with Mean-VaR obtained a weight for PTBA of 0.46536; AKRA of 0.24018; EXCL of 0.25421; and UNVR of 0.25392. ADRO and PTPP stocks have a negative weight value of -0,07775 and -0,13593 this indicates the occurrence of short selling in the weighting. At the 95% confidence level, the VaR portfolio value is 5.06%.</p><p><strong>Keywords: </strong>Clustering; K-Medoids; Daveis Bouldin Index; Portfolio; Mean-VaR</p>