Non-small cell lung cancer (NSCLC) presents the greatest number of identified therapeutic targets, some of which have therapeutic utility. Currently, detecting EGFR, BRAF, KRAS and MET mutations, ALK, ROS1, NTRK and RET translocations, and PD-L1 expression in these patients is considered essential. The use of next-generation sequencing facilitates precise molecular diagnosis and allows the detection of other emerging mutations, such as the HER2 mutation and predictive biomarkers for immunotherapy responses. In this consensus, a group of experts in the diagnosis and treatment of NSCLC selected by the Spanish Society of Pathology and the Spanish Society of Medical Oncology have evaluated currently available information and propose a series of recommendations to optimize the detection and use of biomarkers in daily clinical practice.