Used to introduce a clause, phrase, verb infinitive, adverb or other non-noun complement forming an exception or qualification to something previously stated.
Loosely, used to introduce a contrastive statement explaining why something wasn't successful, didn't happen, etc.informal