Different species of mosquitoes prefer different habitats. Some mosquitoes love to stay near humans whereas others stay in the forest, marshlands, and gardens. One common factor is all mosquitoes love water. However, different types of mosquitoes prefer different types of water. There are permanent water mosquitoes and there are flood-water mosquitoes. The former lays their eggs in permanent or semi-permanent water bodies. Some prefer clean water while others prefer dirty water. Some mosquitoes lay their eggs near freshwater ponds and others in marshy swamps. Floodwater mosquitoes lay their eggs in containers containing soil. Some lay eggs above the waterline. The floodwater habitats are swimming pools, agricultural fields, and tree logs. That answers your question about where do mosquitoes live.