conjunction
A common conjunction used to introduce a contrasting or unexpected statement. Often used at the beginning of a sentence or clause. Slightly more formal than でも, but still widely used in both spoken and written Japanese.
彼は若い。だが、とてもしっかりしている。
He is young. But he is very reliable.
努力した。だが、結果は出なかった。
I made an effort. However, I didn't get results.