A market or exchange is a marketplace in which shares and other financial instruments are bought and sold (traded).
For example, the Johannesburg Stock Exchange (commonly referred to as the JSE) in South Africa or the NYSE (New York Stock Exchange) or NASDAQ in the USA are all considered "markets".
"The market" is also sometimes used as a collective umbrella term for all of the different worldwide markets.