user
Identify the type of sentence used in the following example:

She went to the store, but forgot to buy milk

assistant
This is a compound sentence, formed by joining two independent clauses with the conjunction "but".