A transistor is a semiconductor device used to amplify or switch electronic signals and electrical power. It consists of three layers of semiconductor material, forming two PN junctions. Transistors are fundamental building blocks of modern electronic devices and are used in a wide range of applications, such as in computers, TVs, radios, and many other electronic devices.