These two words are pronounced identically, which is exactly why they're so easy to mix up in writing.
To complete or go well together with something.
A polite expression of praise or admiration.
Quick way to remember
"Complement" has an "e," like "complete" — think of it as things completing each other. "Compliment" has an "i," like "I" — think of it as something nice said to you.