Isoquinoline compounds and their use as inhibitors of HPK1 (hematopoietic kinase 1) are described. The compounds are useful in treating HPK1-dependent disorders and enhancing an immune response. Also described are methods of inhibitng HPK1, methods of treating HPK1-dependent disorders, methods for enhancing an immune response, and methods for preparing the isoquinoline compounds.