Writing Simple and Compound Sentences

A simple sentence has one main thought.
Max makes a great peanut butter and jelly sandwich.
He is out of jelly.
When you put two simple sentences together, you get a compound sentence.
Max makes a great peanut butter and jelly sandwich, but he is out of jelly.