The goal of this paper is to prove a Koszul duality result for En-operads in differential graded modules over a ring. The case of an E1-operad, which is equivalent to the associative operad, is classical. For n > 1, the homology of an En-operad is identified with the n-Gerstenhaber operad and forms another well known Koszul operad. Our main theorem asserts that an operadic cobar construction on...