Mechanism design is a sub-field of game theory. It is the art of designing rules of a game to achieve a specific outcome. This is done by setting up a structure in which each player has an incentive to behave as the designer intends.
One branch of mechanism design is the creation of markets such as auctions. Another is the design of matching algorithms such as the one used to pair medical school graduates with internships.