A solenoid is a long coil of wire with multiple turns. When current flows through the solenoid, it creates a strong and uniform magnetic field inside. A solenoid with an iron core can act as an electromagnet, which is used in various devices.