User: When was the theory of comparative advantage developed?
Assistant: The classical theory of comparative advantage was developed in 1817 by David Ricardo.