Malaria is caused by a bite from a mosquito infected with parasites. In very rare cases, people can get malaria if they come into contact with infected blood. A developing fetus may get the disease from its mother. You cannot get malaria just by being near a person who has the disease.