When can a comma be changed to a semicolon?

A comma can be changed to a semicolon when separating two independent clauses that are closely related in meaning. This change can help to emphasize the connection between the two clauses and create a clearer separation of ideas.