He is known for his discovery of oxygen with Antoine Lavoisier ( though Carl Wilhelm Scheele discovered oxygen two years before him ) . He is usually credited with the discovery of oxygen , having isolated it in its gaseous state , although Carl Wilhelm Scheele and Antoine Lavoisier also have a claim to the discovery .