Blend garlic, lemon juice, eggs, salt, pepper, and sugar in a food processor.
On a low setting, gradually add oil in a very slow stream, until mayonnaise is emulsified. Do not over-mix. When mayonnaise is thick and holds together, it’s ready. Store in the refrigerator for up to one week.