Fainting is a temporary loss of consciousness. It happens when there isn't enough blood going to the brain because of a drop in blood pressure.