Two biologically important compounds that contain both oxygen and nitrogen are
Proteins (their basic units are amino acids which are made up of an amino group with nitrogen and a carboxylic acid with oxygen in them) Nucleic acids- both DNA and RNA are compounds with a ribose and phosphate groups with oxygen and the nitrogen bases with nitrogen