The prediction method plays crucial roles in the accurate prediction of rockfall runout range which could improve the protection of endangered residential areas and infrastructure. Recently, the Knearest neighbor (KNN) algorithm, one of many machine learning techniques, showed good performance in pattern classification. Therefore, the aim of this study was to use the K-nearest neighbor (KNN) algorithm to predict the rockfall runout range which is classified into different subintervals according to the distance from the slope toe. First, we proposed the prediction model of the rockfall runout range based on our improved KNN algorithm which could better offer robustness against different choices of the neighborhood size k, and it is the first work of applying our improved KNN algorithm to rockfall runout range prediction. Second, the shaking table tests of rockfall runout models were conducted for simulating the rockfall process, and the influence laws of factors-including types of an earthquake, peak ground acceleration, vibration frequency, slope angle, slope height, and block mass and block shape-on rockfall distance are investigated. Finally, there is a discussion of the performance of our proposed prediction model based on our improved KNN algorithm in the prediction of rockfall runout range. The extensive experimental results for rockfall runout range prediction demonstrate the effectiveness of our proposed prediction model. INDEX TERMS Improved KNN algorithm, rockfall runout range, earthquake, shaking table test.