If there is a complete sentence on each side of the conjunctions “and,” “but” or “or,” place a comma in front of the conjunction. If you omit the comma, you will create a run-on sentence.
The night was dark, and the mission was dangerous. (Two sentences joined by the conjunction “and.”)
The night was dark and dangerous. (Two predicate adjectives joined by the conjunction “and.” No comma needed.)