A transistor is a semiconductor device used to amplify or switch electronic signals and electrical power. It is a fundamental building block of modern electronics, enabling the miniaturization and complexity of nearly all digital circuits, from radios to computers.