What is a major factor in determining where green plants and protist live?

Water? Sunlight?