Provided herein are quinolines, e.g., a compound of Formula (I) or (IB), pharmaceutical compositions thereof, and methods of their use for treating, preventing, or ameliorating one or more symptoms of an endoplasmic reticulum stress-caused disease. Also provided herein are methods of their use for reducing endoplasmic reticulum stress and modulating the activity of a sarcoplasmic/endoplasmic reticulum Ca2+ ATPase.