A food chain is the sequence of who eats whom in a biological community (an ecosystem) to obtain nutrition. A food chain starts with the primary energy source, usually the sun or boiling-hot deep sea vents. The next link in the chain is an organism that make its own food from the primary energy source -- an example is photosynthetic plants that make their own food from sunlight (using a process called photosynthesis) and chemosynthetic bacteria that make their food energy from chemicals in hydrothermal vents. These are called autotrophs or primary producers.
Next come organisms that eat the autotrophs; these organisms are called herbivores or primary consumers -- an example is a rabbit that eats grass