Exposure of Escherichia coli to alkylating agents activates expression of AidB in addition to DNA repair proteins Ada, AlkA, and AlkB. AidB was recently shown to possess a flavin adenine dinucleotide (FAD) cofactor and to bind to dsDNA, implicating it as a flavin-dependent DNA repair enzyme. However, the molecular mechanism by which AidB acts to reduce the mutagenic effects of specific DNA alkylators is unknown. We present a 1.7-A crystal structure of AidB, which bears superficial resemblance to the acyl-CoA dehydrogenase superfamily of flavoproteins. The structure reveals a unique quaternary organization and a distinctive FAD active site that provides a rationale for AidB's limited dehydrogenase activity. A highly electropositive C-terminal domain not present in structural homologs was identified by mutational analysis as the DNA binding site. Structural analysis of the DNA and FAD binding sites provides evidence against AidB-catalyzed DNA repair and supports a model in which AidB acts to prevent alkylation damage by protecting DNA and destroying alkylating agents that have yet to reach their DNA target.