Let {Y n | n=1,2,…} be a stochastic process and M a positive real number. Define the time of ruin by T = inf{n | Y n > M} (T = +∞ if Y n ≤ M for n=1,2,…). We are interested in the ruin probabilities for large M. Define the family of measures {P M | M > 0} by P M (B) = P(T/M ∊ B) for B ∊ ℬ (ℬ = Borel sets of ℝ). We prove that for a wide class of processes {Y n }, the family {P M } satisfies a large deviations principle. The rate function will correspond to the approximation P(T/M ≈ x) ≈ P(Y ⌈xM⌉/M ≈ 1) for x > 0. We apply the result to a simulation problem.