Yellow fever is caused by a virus (flavivirus). The virus is passed on to people through the bite of a daytime-biting mosquito (Aedes aegypti).