Comparative advantage is the ability of an individual or a country to produce a good or service at a lower opportunity cost compared to another individual or country. It is a fundamental principle in international trade that explains why countries engage in trade and how they can mutually benefit from it.