What is the function of a semicolon?
A semicolon joins two independent, but closely related, clauses (sentences) into one sentence.
.A semicolon is a punctuation mark that joins two closely related independent clauses into one sentence. It could be used instead of a coordinating conjunction.
You can refer to this for more details and a couple of examples:
Does a semicolon join two independent clauses to make a compound sentence? Does a semicolon turn...