After a long introductory phrase:
To separate elements in a series:
To separate independent (stand alone) clauses that are joined by and, but, for, or so:
To set off a phrase not essential to the meaning:
Do not use a comma when the phrase is essential: