Ecology basics for UPSC Prelims: ecosystems, energy flow, nutrient cycles and species interactions

Ecology questions in Prelims are rarely about definitions alone. UPSC asks which organisms are decomposers, why a pyramid is inverted, which nutrient cycle starts with weathering rocks, or which tree has its own pollinating insect. This page covers the core ideas from NCERT Class 12 Biology, with standard definitions and the traps the papers have used.

Asked in 4 Prelims papersUpdated 24 Nov 2026
On this page

Which interaction is it?

Do both partners gain, or only one while the other is unaffected?

5 to sort

  • Fig tree and its partner wasp
  • Cattle egret and grazing cattle
  • Fungi on the roots of higher plants (mycorrhizae)
  • Fungus and alga in a lichen
  • Clownfish among sea anemone tentacles
Show all answers
  • Fig tree and its partner wasp: Mutualism. The wasp pollinates the fig while laying eggs; the fig feeds the wasp's larvae with some of its seeds. Both gain.
  • Cattle egret and grazing cattle: Commensalism. Cattle flush out insects that the egrets catch; the cattle neither gain nor lose.
  • Fungi on the roots of higher plants (mycorrhizae): Mutualism. The fungi help the plant absorb nutrients from the soil; the plant gives the fungi carbohydrates.
  • Fungus and alga in a lichen: Mutualism. NCERT calls lichens an intimate mutualistic relationship between a fungus and photosynthesising algae or cyanobacteria.
  • Clownfish among sea anemone tentacles: Commensalism. The fish is protected by the stinging tentacles; the anemone does not appear to gain anything.

What an ecosystem is

An ecosystem is the complex of living organisms, their physical environment and all their interrelationships in a particular unit of space. NCERT calls it a structural and functional unit of nature. Its abiotic components are inorganic materials such as air, water and soil; its biotic components are producers, consumers and decomposers. A 2015 question asked for the best description of an ecosystem: a community of organisms together with the environment in which they live.

Ecology studies four levels of organisation: organisms, populations, communities and biomes. An ecosystem has a characteristic physical structure. Its two main structural features are species composition (which species are present) and stratification, the vertical layering of species, as when trees, shrubs and then herbs and grasses occupy successive layers of a forest.

NCERT names four functions that make an ecosystem work as a unit: productivity, decomposition, energy flow and nutrient cycling. A pond shows all four: phytoplankton and plants make food from sunlight, zooplankton and fish eat them, and fungi, bacteria and flagellates at the bottom break down the dead matter.

Habitat, niche, ecotone and keystone species

Core ecology terms with their standard meanings
TermMeaningRemember
Ecological nicheMeaning: All of a species' interactions with others in its community (competition, predation, parasitism, mutualism) plus the abiotic factors such as soil and climate that define its placeRemember: Its "job" or role, not just its address (2013 question)
EcotoneMeaning: A transition zone between two plant communities, such as forest and grassland, with features of both and often species found in neitherRemember: The influence of the two communities on each other is the edge effect
Keystone speciesMeaning: A species with a disproportionately large effect on its community, often an apex predatorRemember: Term coined by Robert T. Paine; the starfish Pisaster is the classic example
StratificationMeaning: Vertical layering of species in a communityRemember: Trees, then shrubs, then herbs and grasses in a forest

The keystone idea comes from the rocky shores of North America's Pacific coast. When the predatory starfish Pisaster was removed from an enclosed intertidal area, NCERT notes that more than 10 invertebrate species went extinct within a year because of competition among them. Britannica adds that the mussels it eats spread to cover the rocks, crowding other species out.

Productivity and energy flow

  • Primary productivity is the rate of biomass production by producers. Gross primary productivity (GPP) is the total rate; GPP minus respiration losses is net primary productivity (NPP), the biomass available to consumers and decomposers. Secondary productivity is the rate at which consumers assimilate food energy.
  • The annual NPP of the whole biosphere is about 170 billion tonnes (dry weight). The oceans cover about 70 per cent of the surface but produce only 55 billion tonnes of it.
  • Less than 50 per cent of incoming sunlight is photosynthetically active radiation (PAR), and plants capture only 2 to 10 per cent of PAR.
  • Energy flow is unidirectional, from the Sun to producers and on to consumers. Only about 10 per cent of the energy at one trophic level passes to the next (the 10 per cent law), which limits how long a grazing food chain can be.
The two kinds of food chain in NCERT Class 12 Biology
Food chainStarts withWhere it dominates
Grazing food chain (GFC)Starts with: Living producers eaten by herbivoresWhere it dominates: Main conduit of energy in aquatic ecosystems
Detritus food chain (DFC)Starts with: Dead organic matter (detritus) broken down by decomposersWhere it dominates: A much larger share of energy flows through it on land

Food chains link into food webs, and one species can sit on more than one trophic level: a sparrow is a primary consumer when it eats seeds and a secondary consumer when it eats insects. A trophic level is a functional level, not a species.

Practise the Ecology Basics chapter

80 questions, 24 of them from past Prelims papers, every option explained.

Loading sign-in options

Ecological pyramids

Pyramids of number, biomass and energy put producers at the base and top consumers at the apex. In most ecosystems all three are upright.

Ecological pyramids and their exceptions, from NCERT Class 12 Biology
PyramidUsual shapeException
NumberUsual shape: UprightException: Can be inverted, e.g. many insects feeding on one big tree
BiomassUsual shape: UprightException: Generally inverted in the sea: a small standing crop of phytoplankton supports a larger biomass of zooplankton and fish
EnergyUsual shape: Always uprightException: Never inverted, because some energy is lost as heat at every step

Decomposition

Decomposers, mainly fungi and bacteria, break down dead organic matter into carbon dioxide, water and nutrients. They are also called saprotrophs. The steps are fragmentation, leaching, catabolism, humification and mineralisation. Detritivores such as earthworms start the process by breaking detritus into smaller particles.

Decomposition is largely an oxygen-requiring process. Warm, moist conditions speed it up; low temperature and anaerobiosis slow it down, so organic matter builds up. Humus, the dark material formed by humification, resists microbial action and decomposes very slowly.

Nutrient cycles

NCERT divides nutrient cycles into two types. In gaseous cycles, such as carbon's, the reservoir is the atmosphere or hydrosphere. In sedimentary cycles, such as phosphorus's, the reservoir is Earth's crust; phosphorus is released from rock mainly by weathering, leaching and mining.

How carbon, nitrogen and phosphorus move, from Britannica and NCERT
CycleAdds the nutrient to air or soilRemoves it
CarbonAdds the nutrient to air or soil: Respiration, decay by decomposers, burning of fuels, volcanic outgassingRemoves it: Photosynthesis by plants and algae; burial as fossil fuels, limestone and coral
NitrogenAdds the nutrient to air or soil: Fixation by bacteria and blue-green algae (about 90 per cent of fixation), lightning, Haber-Bosch fertiliser; decay of remains and wastes releases ammoniaRemoves it: Denitrifying bacteria, most active in waterlogged, oxygen-free soils, return it to the air as nitrogen gas
PhosphorusAdds the nutrient to air or soil: Weathering of rocksRemoves it: Deposition in shallow sea sediments and ocean deeps

In the nitrogen cycle, ammonification turns remains and wastes into ammonia, nitrification by bacteria turns ammonia into nitrates that plants absorb, and denitrification returns nitrogen to the air. Legumes live in symbiosis with nitrogen-fixing bacteria such as Rhizobium. Air is about 78 per cent nitrogen by volume, but most organisms cannot use it in that form.

Population interactions

Population interactions (+ benefit, − harm, 0 neutral) from NCERT Class 12 Biology
InteractionSpecies ASpecies BExample
MutualismSpecies A: +Species B: +Example: Fig and its wasp; lichens; mycorrhizae (fungi on plant roots)
CompetitionSpecies A: −Species B: −Example: Flamingoes and fishes for zooplankton in South American lakes
PredationSpecies A: +Species B: −Example: Starfish Pisaster on intertidal invertebrates
ParasitismSpecies A: +Species B: −Example: Cuscuta on hedge plants; lice on humans; brood parasitism by the cuckoo
CommensalismSpecies A: +Species B: 0Example: Cattle egret and cattle; clownfish and sea anemone
AmensalismSpecies A: −Species B: 0Example: One species harmed, the other unaffected
Population interactions (+ benefit, − harm, 0 neutral) from NCERT Class 12 Biology

Gause's competitive exclusion principle says two closely related species competing for the same limiting resource cannot coexist indefinitely. Species can avoid it by resource partitioning: MacArthur showed five warbler species sharing one tree by foraging differently. In many fig species, each fig has a one-to-one relationship with its own pollinating wasp species, the example behind a 2024 question.

Ecological succession

Ecological succession is the change in a community's structure over time. Primary succession starts in essentially lifeless places with no usable soil, such as fresh lava, new sand dunes or rock left by a retreating glacier. Pioneer species, typically lichens, mosses and other hardy species, arrive first and slowly build soil. Secondary succession follows a disturbance such as fire, flood or the abandonment of farmland, where soil remains, so it does not start from scratch.

Succession can end in a climax community, a relatively stable community dominated by a few species. It is not permanent: long-term changes in climate and other processes keep shifting it.

Ecosystem services

The four categories of ecosystem services in the Millennium Ecosystem Assessment (2005)
Category (Millennium Ecosystem Assessment)Examples
ProvisioningExamples: Food, water, timber, fibre
RegulatingExamples: Effects on climate, floods, disease, wastes, water quality; pollination
CulturalExamples: Recreational, aesthetic and spiritual benefits
SupportingExamples: Soil formation, photosynthesis, nutrient cycling

Exam traps

  • Half the oxygen comes from the ocean. NOAA says about half of Earth's oxygen comes from the ocean, made by photosynthetic plankton, so a claim that rainforests make more oxygen than oceans is false (2025 question).
  • Viruses are not decomposers. NCERT names fungi and bacteria as the decomposers.
  • Ocean productivity is low per unit area. The oceans cover about 70 per cent of the surface but make under a third of the biosphere's NPP.
  • A food chain shows who eats whom, not how many of each are eaten.

For biodiversity, hotspots and conservation, see biodiversity. Practise in the ecology basics chapter.

Key facts

Definition of an ecosystem
Living organisms, their physical environment and all their interrelationships in a unit of spaceEncyclopaedia Britannica
Four functions of an ecosystem
Productivity, decomposition, energy flow, nutrient cyclingNCERT
Annual net primary productivity of the biosphere
About 170 billion tonnes (dry weight); oceans 55 billionNCERT
Share of PAR that plants capture
2 to 10 per centNCERT
Energy passed to the next trophic level
About 10 per centNCERT
Pyramid that is never inverted
Pyramid of energyNCERT
Pyramid usually inverted in the sea
Pyramid of biomassNCERT
Reservoir of a sedimentary cycle (phosphorus)
Earth's crustNCERT
Share of nitrogen fixation done by organisms
About 90 per cent (bacteria and blue-green algae)Encyclopaedia Britannica
Who coined "keystone species"
Robert T. PaineEncyclopaedia Britannica
Ecosystem service categories (MEA)
Provisioning, regulating, cultural, supportingMillennium Ecosystem Assessment
Oxygen from the ocean
About half of Earth's oxygenNational Ocean Service, NOAA

Asked in Prelims

5 past questions on this topic, from Prelims 2013, 2014, 2021 and 2024.

  1. Prelims 2024Answer it

    Which one of the following shows a unique relationship with an insect that has co-evolved with it and that is the only insect that can pollinate this tree?

    (a) Fig · (b) Mahua · (c) Sandalwood · (d) Silk cotton

  2. Prelims 2021Answer it

    Which of the following are detritivores?

    1. Earthworms
    2. Jellyfish
    3. Millipedes
    4. Seahorses
    5. Woodlice

    Select the correct answer using the code given below.

    (a) 1, 2 and 4 only · (b) 2, 3, 4 and 5 only · (c) 1, 3 and 5 only · (d) 1, 2, 3, 4 and 5

  3. Prelims 2021Answer it

    In case of which one of the following biogeochemical cycles, the weathering of rocks is the main source of release of nutrient to enter the cycle?

    (a) Carbon cycle · (b) Nitrogen cycle · (c) Phosphorus cycle · (d) Sulphur cycle

  4. Prelims 2014Answer it

    Lichens, which are capable of initiating ecological succession even on a bare rock, are actually a symbiotic association of:

    (a) Algae and bacteria · (b) Algae and fungi · (c) Bacteria and fungi · (d) Fungi and mosses

  5. Prelims 2013Answer it

    With reference to the food chains in ecosystems, which of the following kinds of organism is/are known as decomposer organism/organisms?

    1. Virus
    2. Fungi
    3. Bacteria

    Select the correct answer using the codes given below.

    (a) 1 only · (b) 2 and 3 only · (c) 1 and 3 only · (d) 1, 2 and 3

See all 24 past questions in Ecology Basics

Check yourself

Pick an option to check yourself. Every choice gets its own explanation.

Q1EnvironmentPYQ 2024Ecology Basics

Which one of the following shows a unique relationship with an insect that has co-evolved with it and that is the only insect that can pollinate this tree?

Show answer

The answer is A.

Why A is right:

Correct. Fig trees (Ficus) have an obligate mutualism with fig wasps (family Agaonidae); each fig species is pollinated exclusively by its specific wasp partner.

Why not B:

Mahua flowers are pollinated by multiple generalist visitors including bats and insects; there is no obligate one-to-one insect relationship.

Why not C:

Sandalwood is a hemiparasitic tree pollinated by various generalist insects and does not display obligate co-evolution with a single pollinator.

Why not D:

Silk cotton (Bombax) is typically pollinated by birds, bats, and generalist insects rather than a single co-evolved insect partner.

Q2EnvironmentPYQ 2021Ecology Basics

Which of the following are detritivores?

  1. Earthworms
  2. Jellyfish
  3. Millipedes
  4. Seahorses
  5. Woodlice

Select the correct answer using the code given below.

Show answer

The answer is C.

Why C is right:

Correct. Earthworms, millipedes, and woodlice feed on decaying organic matter and are classic detritivores. Jellyfish and seahorses are predators.

Why not A:

Jellyfish are carnivorous predators that capture zooplankton and small fish using nematocysts, and seahorses are predators of small crustaceans — neither is a detritivore.

Why not B:

Jellyfish and seahorses are both predators, not detritivores. Including them is incorrect.

Why not D:

Jellyfish and seahorses are active predators in marine ecosystems and do not feed on dead organic matter.

Q3EnvironmentPYQ 2021Ecosystems and Ecological Relationships

In case of which one of the following biogeochemical cycles, the weathering of rocks is the main source of release of nutrient to enter the cycle?

Show answer

The answer is C.

Why C is right:

Correct. Phosphorus has no significant gaseous phase. The primary natural input to the phosphorus cycle is the weathering of phosphate-bearing rocks such as apatite.

Why not A:

While weathering of silicate rocks does slowly draw down atmospheric CO2, the main inputs to the carbon cycle are volcanic outgassing, respiration, and decomposition rather than rock weathering.

Why not B:

The nitrogen cycle is driven primarily by atmospheric nitrogen fixation (biological and lightning-mediated), not by rock weathering.

Why not D:

Though sulphur is present in rocks, the sulphur cycle receives major inputs from volcanic emissions and decomposition of organic matter in addition to weathering.

Q4EnvironmentPYQ 2014Ecosystems and Ecological Relationships

Lichens, which are capable of initiating ecological succession even on a bare rock, are actually a symbiotic association of:

Show answer

The answer is B.

Why B is right:

Correct. Lichens are a mutualistic symbiosis between a fungal partner (mycobiont) and a photosynthetic partner (photobiont), which is typically a green alga or sometimes a cyanobacterium.

Why not A:

While some lichens contain cyanobacteria as photobionts, the classic and most common lichen association is between algae and fungi, not algae and bacteria alone.

Why not C:

The fungal component is correct, but the photosynthetic partner in most lichens is a green alga, not a bacterium. Some lichens do contain cyanobacteria, but the standard description is algae and fungi.

Why not D:

Mosses are not a component of lichens. Mosses are bryophytes that may colonise rocks after lichens in the successional sequence but are not symbionts within lichens.

Q5EnvironmentPYQ 2013Ecosystems and Ecological Relationships

With reference to the food chains in ecosystems, which of the following kinds of organism is/are known as decomposer organism/organisms?

  1. Virus
  2. Fungi
  3. Bacteria

Select the correct answer using the codes given below.

Show answer

The answer is B.

Why B is right:

Correct. Fungi and bacteria are the principal decomposers in ecosystems. They secrete enzymes that break down dead organic matter and recycle nutrients back into the soil.

Why not A:

Viruses are obligate intracellular parasites that cannot independently decompose organic matter. They lack metabolic machinery for decomposition.

Why not C:

Viruses are not decomposers. While bacteria are major decomposers, viruses require living host cells to replicate and do not break down dead organic matter.

Why not D:

Viruses lack the enzymes and metabolic pathways needed for decomposition. Only fungi and bacteria function as decomposers in ecosystem food chains.

FAQ

What is the 10 per cent law in ecology?
Only about 10 per cent of the energy at one trophic level is passed on to the next; the rest is used or lost as heat. That is why grazing food chains rarely have more than a few levels.
Why is the pyramid of biomass inverted in the sea?
Because a small standing crop of phytoplankton supports a larger biomass of zooplankton and fish at a given moment. The pyramid of energy is never inverted, because some energy is always lost as heat at each step.
What is the difference between a habitat and a niche?
A habitat is where a species lives. A niche is its role there: all its interactions with other species, such as competition, predation and mutualism, along with the abiotic conditions it needs.
What are the steps of decomposition?
Fragmentation, leaching, catabolism, humification and mineralisation. Detritivores such as earthworms break detritus into small pieces, and fungi and bacteria then break it down into carbon dioxide, water and nutrients.

Sources · Updated 24 Nov 2026