Yellow fever is caused by a virus. The virus is carried by certain animals that live in tropical areas of South America and Africa. When mosquitoes bite an infected animal or person, they pick up the virus and give it to the next person they bite.