Comparative advantage refers to a situation where a country can produce a product with less opportunity cost than another country. This means that the country can produce the product at a lower cost in terms of the alternative goods or services that could have been produced instead. By specializing in the production of goods or services with lower opportunity cost, countries can trade with each other and benefit from the differences in their production efficiencies, leading to overall economic gains.