The starter is a small electric motor that, when activated, spins the engine. The little gear on the starter is spring-loaded, when the motor turns on the gear pops out and engages a larger gear on the engine, when the starter motor is turned off the gear retracts and the two disengage.
When the engine is running, the Starter doesn't really do anything.