It's a common phrase used to express a contrast or objection to something previously stated.
For example:
* "Je veux aller au cinéma, mais je suis fatigué." (I want to go to the cinema, but I'm tired.)
* "Il pleut, mais je vais sortir quand même." (It's raining, but I'm going out anyway.)