The present invention relates to certain benzimidazole compounds, or pharmaceutically acceptable salts thereof, that inhibit Janus kinase 1 (JAK1), pharmaceutical compositions comprising the compounds, and methods of using the compounds to treat certain types of cancer.