Firmware is a type of software embedded into hardware devices that provides basic machine instructions to control their functionality and communicate with other software running on the device.