The present disclosure relates to somatic ErbB2 mutations in cancer and provides methods of identifying, diagnosing, and prognosing ErbB2-positive cancers. The present disclosure further provides methods of treating cancer, including certain subpopulations of patients. The mutations are in the transmembrane domain or juxtamembrane domain of ErbB2.