A transistor is a semiconductor device used to amplify or switch electronic signals and electrical power. It is one of the most fundamental building blocks of modern electronics and is widely used in devices such as computers, mobile phones, radios, and amplifiers. Transistors are responsible for regulating the flow of current or voltage in a circuit, making them essential for creating logic circuits, amplifying signals, and enabling digital and analog operations.