Mostly, the sun's gravity combined with the eccentricity (ellipticalness) of their orbit. The closer they get to a large mass like the sun (or a planet) the more they'll speed up.
Note: There are comments associated with this question. See the
discussion page
to add to the conversation.
A comet is a Small Solar System Body that orbits the Sun and, when close enough to the Sun, exhibits a visible coma (atmosphere) or a tail-both primarily from the effects of solar radiation upon the...
Measure the distance travelled in a given time. speed is distance divided by time so if a ball moved 100 metres in 5 seconds it is travelling at (100/5)m/s20m/s