A semicolon is used to connect two independent clauses that are closely related in meaning. It acts as a stronger pause than a comma, but not as strong as a period.
Here's an example:
* Correct: I went to the store; I needed to buy groceries.
* Incorrect: I went to the store;
The semicolon needs another independent clause to function correctly.