Garlic is a recurring food item in Epic Battle Fantasy series since Epic Battle Fantasy 3. Its role is always the same, healing all status effects upon consumption, like in real life. It is a replacement for the Antidote item in the first two games.
In EBF3, it can be bought at the Old Brick Inn in The Town, found in treasure chests or is looted from slain monsters. The acquiring methods in EBF4 are largely unchanged.