Veins are blood vessels that carry deoxygenated blood from various parts of the body back to the heart, except for the pulmonary and umbilical veins, which carry oxygenated blood. They have thinner walls than arteries and contain valves that prevent the backflow of blood, ensuring unidirectional flow towards the heart.