What year was the car manufacturer Ferrari founded in?

Ferrari was founded in 1939 from the Alfa Romeo racing division as Auto Avio Costruzioni, the company built its first car in 1940, and produced its first Ferrari-badged car in 1947.