Provided is a novel compound having bromodomain and extra terminal domain (BET) protein inhibiting activities and a pharmaceutical composition comprising the same which can be useful for prevention or treatment of precancerous transformation or cancer.