What is the Function of Veins?

Veins carry blood to the heart. All veins bring deoxygenated blood into the heart from the rest of the body except for one vein which is the pulmonary. It brings oxygenated blood from the lungs to the heart.