Determine if the sentence is simple, compound, or complex.

"While the band played, they marched in the parade."

This sentence is complex.