A microcontroller is an integrated circuit that can be programmed to perform tasks like controlling electronic devices. It contains a processor, memory, and input/output ports on a single chip. Microcontrollers come in different sizes based on the width of their internal data bus and instruction set, from 4-bit to 32-bit. They are widely used in embedded systems due to their low cost, low power usage, and flexibility from being programmable.