In probability theory, 'almost surely' refers to an event that is certain to happen, with the exception of a set of outcomes that has a probability of zero. This concept is crucial for understanding the behavior of random processes and the certainty of outcomes within infinite sample spaces.