A conjunction used to introduce a fact that is contrary to what one might expect from the preceding context. Often translated as 'however', 'but', or 'even so'. It can also mark an unexpected turn of events.
彼
は
一
生
懸
命
勉
強
し
た
。
ところ
が
、
試
験
に
落
ち
て
しまっ
た
。
He studied very hard. However, he failed the exam.