How exercise can help manage diabetes

We all know that exercise is important to stay fit and healthy, but how can exercise help to manage diabetes?