A transistor is a semiconductor device used to amplify or switch electronic signals and electrical power. It is a fundamental building block of modern electronic devices, enabling the development of computers, radios, and many other technologies.