Controlling a solenoid

Solenoids are often 12 or 24v, and require a large amount of current to power them. Because of this, simply hooking one up to a microcontroller or other circuit isn't often possible.