The primary function of oxyhemoglobin is to transport oxygen from the lungs to the tissues and organs. Once in the tissues, the oxygen is released, and hemoglobin binds to carbon dioxide and other waste products to be transported back to the lungs for exhalation. This transport mechanism is vital for maintaining the homeostasis of oxygen and carbon dioxide levels in the body.