To my mind, the correct answer is “when connecting related but independent clauses of a sentence”. Semicolons are used to relate two independent clauses in the same sentence by introducing in some instances transition words (example “; therefore,”) or without connectors at all. However, the independent clauses are separated by a semicolon, they are closely related in thought.