n-Grams are contiguous sequences of n items, typically words or characters, extracted from a text. They capture local context and are used in language modeling to predict the next item, analyze text patterns, or improve machine learning models for tasks like speech recognition, text prediction, and plagiarism detection. The value of n determines the granularity of these sequences.