The present invention relates to thienodiazepine derivatives and their application in the manufacture of drugs for the treatment of diseases associated with bromodomain and external terminal (BET) bromodomain inhibitors. Specifically, the present invention relates to compounds represented by the general formulas (I) and (II), as well as pharmaceutically acceptable salts thereof.본 발명은 티에노디아제핀 유도체류와 브로모도메인 및 외부 말단(BET) 브로모도메인 억제제와 관련된 질환의 치료를 위한 약물의 제조에 있어서 이의 적용에 관한 것이다. 구체적으로, 본 발명은 일반식(I) 및 (II)로 표시되는 화합물뿐 아니라, 그의 약학적으로 허용되는 염에 관한 것이다.