The invention provides 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 and can be used as single agents or in combination therapies.