DDT was first synthesized in 1874. It's insecticide properties were not discovered until 1939.
Correction, the insecticide properties of DDT began to be promoted in 1939. They were widely known well before that time.