An inverted index is a data structure used to map content, such as words or terms, to their locations in a database, document, or set of documents, enabling efficient full-text searches. It is the backbone of search engines, allowing for quick retrieval of documents containing specific terms by storing a list of occurrences for each term.