What is the difference between the primary market and the secondary market?

In the primary market, securities are offered to public for subscription for the purpose of raising capital or fund. Secondary market is an equity trading avenue in which already existing/pre- issued securities are traded amongst investors. Secondary market could be either auction or dealer market. While stock exchange is the part of an auction market, Over-the-Counter (OTC) is a part of the dealer market.