A comma before a conjunction is used to separate independent clauses in a compound sentence. This punctuation rule helps clarify the relationship between the two clauses by indicating a pause, making it easier for readers to understand the meaning and structure of the sentence.