Nucleic acids like DNA, RNA and phospholipid are the biomolecules which have both nitrogen and phosphorous.