A market town is a settlement most common in Europe that obtained by custom or royal charter, in the Middle Ages, a market right, which allowed it to host a regular market; this distinguished it from a village or city. In Britain, small rural towns with a hinterland of villages are still commonly called market towns, as sometimes reflected in their names (e.g. Downham Market, Market Rasen, or Market Drayton).
Modern markets are often in special halls, but this is a recent development, and the rise of permanent retail establishments has reduced the need for periodic markets. Historically the markets were open-air, held in what is usually called (regardless of its actual shape) the market square (or "Market Place" etc.), and centred on a market cross (mercat cross in Scotland). They were and are typically open one or two days a week.
The primary purpose of a market town is the provision of goods and services to the surrounding locality. Although market towns were known in antiquity, their number increased rapidly from the 12th century. Market towns across Europe flourished with an improved economy, a more urbanised society and the widespread introduction of a cash-based economy. Domesday Book of 1086 lists 50 markets in England. Some 2,000 new markets were established between 1200 and 1349. The burgeoning of market towns occurred across Europe around the same time.
Initially, market towns most often grew up close to fortified places, such as castles or monasteries, not only to enjoy their protection, but also because large manorial households and monasteries generated demand for goods and services. Historians term these early market towns "prescriptive market towns" in that they may not have enjoyed any official sanction such as a charter, but were accorded market town status through custom and practice if they had been in existence prior to 1199. From an early stage, kings and administrators understood that a successful market town attracted people, generated revenue and would pay for the town's defences.