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