Inclusion Criteria:  Provide a signed and dated informed consent form (ICF). Chinese male or female with age ≥18 years old at the time of the informed consent. Documented histology- and/or cytology-confirmed metastatic melanoma or non-small cell lung cancer (NSCLC) (i.e. adenocarcinoma, large cell carcinoma, squamous cell carcinoma). Presence of B-RAF Proto-oncogene, Serine/threonine Kinase V600E Mutant (BRAF V600E) mutation as determined by a local laboratory with a National Medical Products Administration (NMPA) approved BRAF test. BRAF inhibitor treatment-naïve participants and having failed the previous therapy(ies) for metastatic disease or are not eligible to standard therapy. At least one tumor lesion as per investigator assessment according to Response Evaluation Criteria in Solid Tumors (RECIST) Version 1.1, which has neither been irradiated nor biopsied during the screening period. The irradiated lesion is acceptable only if it is proven as disease progression deemed measurable prior to study. Life expectancy ≥3 months. Eastern Co-operative Oncology Group (ECOG) performance status of 0 or 1. Adequate hematologic function at screening and baseline Adequate hepatic function at screening and baseline Adequate renal function at screening and baseline Able to comply with the study protocol as per investigator assessment including oral drug intake, complying scheduled visits, treatment plan, laboratory tests and other study procedures. Women are either postmenopausal for at least 1 year, or are surgically sterile for at least 6 weeks, or women of childbearing potential (WOCBP) must agree to take appropriate precautions to avoid pregnancy. Men must agree not to father child until 90 days after the last dose of study treatment.  Exclusion Criteria:  Known immediate or delayed hypersensitivity reaction or idiosyncrasy to drugs chemically related to encorafenib, or its excipients. For metastatic NSCLC: documented anaplastic lymphoma kinase (ALK) fusion oncogene, ROS1 (c-ros oncogene 1) rearrangement or epidermal growth factor receptor (EGFR) sensitizing or driver mutation. Receipt of anticancer medications or investigational drugs within intervals before the first administration of study treatment. Symptomatic brain metastasis. Leptomeningeal disease. Participant has not recovered to ≤Grade 1 from toxic effects of prior therapy and/or complications from prior surgical treatment before starting study treatment. Current use of prohibited medication ≤1 week prior to start of the study treatment and/or concomitantly. Impairment of gastrointestinal function or disease which may significantly alter the absorption of oral study treatment. Impaired cardiovascular function or clinically significant cardiovascular diseases. Participants with active Hepatitis B virus (HBV) or Hepatitis C virus (HCV) or any other severe viral active infection (e.g. severe acute respiratory syndrome coronavirus 2 [SARS-CoV-2] infection). Evidence of active, non-infectious pneumonitis, history of interstitial lung disease that required oral or intravenous glucocorticoid steroids for management. Known history of a positive test for human immunodeficiency virus (HIV) or known acquired immunodeficiency syndrome (AIDS). Testing for HIV must be performed at sites where mandated locally. Participants who have had major surgery (e.g. inpatient procedure with regional or general anesthesia) within 6 weeks prior to start of study treatment.  Previous or concurrent malignancy within 2 years of study entry.  Except:  Bowen's disease. Cured basal cell or squamous cell skin cancer. Gleason 6 prostate cancer. Treated in-situ carcinoma of cervix. Participant's conditions that contraindicates the use of study treatment and may affect interpretation of results or that may render the participant at high risk from treatment complications. Pregnant (confirmed by positive serum beta-human Chorionic Gonadotropin (ß-HCG) test), lactating or breast-feeding women. Is a family member of the Investigator or any associate, colleague, and employee assisting in the conduct of the study (secretary, nurse, technician). Is in a position likely to represent a conflict of interest.