When to Not Remove Stopwords?

What are stopwords? Why do we typically remove them? When does it make sense to remove stop words? When does it not make sense to remove stopwords?