Endosomes are membrane-bound compartments within eukaryotic cells that play a crucial role in sorting and trafficking proteins and lipids. They are involved in processes like endocytosis, recycling, and degradation, acting as intermediaries between the cell surface and lysosomes.