Vasovagal syncope is the most common cause of fainting. It happens when the blood vessels open too wide or the heartbeat slows, causing a temporary lack of blood flow to the brain. It's generally not a dangerous condition. To prevent fainting, stay out of hot places and don't stand for long periods.