A queue is a linear data structure that follows the first-in, first-out (FIFO) principle. In other words, the first element added to the queue is the first one to be removed. Queues are often used to store data that needs to be processed in a first-come, first-served manner.