To prevent (something considered wrong or undesirable) from succeeding. The police foiled the robbery attempt by arriving just in time.
To frustrate the efforts or plans of someone. Her quick thinking foiled his attempts to cheat during the exam.
To cover, back, or coat with a thin sheet of metal or other material. The artisan foiled the glass to create a decorative mirror.