What does a pulley on an alternator do?

An alternator pulley transfers mechanical power from an engine crankshaft to the alternator shaft via a belt. It's interesting to note that on some engines, there are no pulleys and the power is transfered via solid gears.