A device driver is a small piece of software that tells the operating system and other software how to communicate with a piece of hardware.
For example, printer drivers tell the operating system, and by extension whatever program you have the thing you want to print open in, exactly how to print information on the page.