A peripheral device is an external hardware component that connects to a computer, such as a printer, keyboard, or mouse.