Described herein are compounds of Formula (I) or Formula (VI), pharmaceutically acceptable salts thereof, and pharmaceutical compositions thereof. Also provided are particles (e.g., nanoparticles) comprising compounds of Formula (I) or Formula (VI) and pharmaceutical compositions thereof that are mucus penetrating. Methods of using the compounds or pharmaceutical compositions thereof for treating diseases are also provided.