Megaselia halterata (Wood) (Diptera: Phoridae) is a pest of commercial mushroom production in North America and Europe. Compost or casing materials treated with experimental insecticides were placed in commercial mushroom growing rooms that were heavily infested with M. halterata. Control was determined by comparing emergence from treated material with that from untreated material. As a compost treatment, the following were ineffective: resmethrin, fenvalerate, permethrin, Lily-7063, and triflumuron. Diflubenzuron was effective only at high doses. Acephate, chlorpyrifos, deltamethrin, diazinon, dimethoate, ethoprop, fenitrothion, and methoprene were effective. As casing treatments malathion, triflumuron, and diflubenzuron were ineffective. Dimethoate, diazinon, acephate, chlorpyrifos, deltamethrin, ethoprop, fenitrothion, and methoprene were effective.