The dimples on a golf ball make it fly farther and faster than it would have without them. This is due to the fact that dimples increase turbulence and decrease drag on the ball. They do this by making the air stick to the ball a little longer than it would have otherwise and reducing the turbulent wake that is behind the ball as it is flying. This reduces the area of negative pressure behind a flying ball and makes it fly faster and farther.
More about dimples on a golf ball: