FANBOYS

When two or more sentence units are joined into one by using a FANBOYS conjunction, the conjunction must be preceded by a comma: John went outside, and he played baseball.

Textbook: 16:1.D