In this paper, we present a nonparametric estimator for ruin probability in the classical risk model with unknown claim size distribution. We construct the estimator by Fourier inversion and kernel density estimation method. Under some conditions imposed on the kernel, bandwidth and claim size density, we present some large sample properties of the estimator. Some simulation studies are also given to show the finite sample performance of the estimator.