As a relative pronoun
Something; thing; stuff.
Why? For what purpose? On what account?
Whatever; whatsoever; what thing soever; -- used indefinitely.
As an exclamatory word: -- (a) Used absolutely or independently; -- often with a question following.
Used adjectively, meaning how remarkable, or how great; as, what folly! what eloquence! what courage!