An I/O queue is a fundamental mechanism in computing that manages the order and execution of input/output operations, ensuring efficient data flow between a computer's main memory and its peripheral devices. It plays a crucial role in optimizing system performance by prioritizing tasks and minimizing idle time for both the CPU and I/O devices.