It is useful in the treatment or prevention of disease, - allergy has an effect of inhibiting the costimulatory signal from CD28 on T cells, suppression or prevention of rejection in transplant when the bone marrow or organ, or autoimmune disease, the following general formula (I) [Formula 1] and a method of manufacturing the production intermediate thienotriazolodiazepine compound represented by the of thienotriazolodiazepine compounds and medicaments containing the same as an active ingredient.T細胞上のCD28からの共刺激シグナルを阻害する作用を持ち、臓器又は骨髄等の移植時における拒絶反応の予防又は抑制、自己免疫疾患、又はアレルギ-性疾患の予防又は治療に有用である、下記一般式(I)【化1】で示されるチエノトリアゾロジアゼピン化合物、これを有効成分として含む医薬並びにチエノトリアゾロジアゼピン化合物の製造中間体及びその製造方法。