Gilotrif (afatinib) is a prescription medication used to help stop or slow the spread of cancer in people with epidermal growth factor receptor (EGFR)-positive non-small cell lung cancer (NSCLC). Patients tend to take Gilotrif for a median time of about 11 to 13 months, although the length of treatment varies from person to person.