Compounds which directly inhibit IRE-1α activity in vitro, prodrugs, and pharmaceutically acceptable salts thereof. Such compounds and prodrugs are useful for treating diseases associated with the unfolded protein response or with regulated IRE1-dependent decay (RIDD) and can be used as single agents or in combination therapies.