This randomized controlled trial was designed to compare the most common technique for open mesh repair (Lichtenstein) with the currently preferred minimally invasive technique (total extra peritoneal, TEP) for the surgical correction of inguinal hernia. A total of 660 patients were randomized to Lichtenstein or TEP procedure. Primary outcomes were postoperative pain, length of hospital stay, period until complete recovery, and quality of life (QOL). Recurrences, operating time, complications, chronic pain, and costs were secondary endpoints. This study was registered at www.clinicaltrials.gov and carries the ID: NCT00788554. About 336 patients were randomized to TEP, and 324 to Lichtenstein repair. TEP was associated with less postoperative pain until 6 weeks postoperatively (P=0.01). Chronic pain was comparable (25% vs. 29%). Less impairment of inguinal sensibility was seen after TEP (7% vs. 30%, P=0.01). Mean operating time for a unilateral hernia with TEP was longer (54 vs. 49 minutes, P=0.03) but comparable for bilateral hernias. Incidence of adverse events during surgery was higher with TEP (5.8% vs. 1.6%, P<0.004), but postoperative complications (33% vs. 33%), hospital stay and QOL were similar. After TEP, patients had a faster recovery of daily activities (ADL) and less absence from work (P=0.01). After a mean follow-up of 49 months, recurrences (3.8% vs. 3.0%, P=0.64) and total costs (euro3.096 vs. euro3.198) were similar. TEP procedure was associated with more adverse events during surgery but less postoperative pain, faster recovery of daily activities, quicker return to work, and less impairment of sensibility after 1 year. Recurrence rates and chronic pain were comparable. TEP is recommended in experienced hands.