The town was established in 1205 and soon developed as the central market and port along the west coast of Scotland, becoming a prominent trading port to Ireland. Oliver Cormwell also established a Citadel along the south of the river Ayr, the ramparts of which remain visible to this day. The suburb of Alloway remains among the most popular areas of the town for tourism: housing the cottage of famous Scottish poet Robert Burns and the Robert Burns Experience. As of 1887 coal and iron remained the central export of the town, with fishing and shipping also forming a significant sect of the local economy. It later developed as a holiday resort, aspects of which remain the case today with the continued presence of a Butlins holiday park to the south of the town. The Gaiety Theatre in Ayr ran various shows across the late 20th century, attracting performers from across the United Kingdom, and despite its decline throughout the 2000s, it remains in operation today.

Politically, Ayr has been more Conservative-voting than the remainder of Scotland, being represented by a Conservative MP continuously for nearly 100 years – from 1906 (as part of the Ayr Burghs constituency) until 1997. The town remains a part of the first Conservative seat in the Scottish Parliament which has voted Conservative since 2000. The town is now marginally contested between the Conservatives, the Scottish National Party and the Labour Party.

Ayr was established as a burgh by King William the Lion in 1205. It was once known as 'Inverair' or 'Inverayr' (meaning mouth of the Ayr). Elements of this name remains present in the Scottish Gaelic name for Ayr – Inbhir Air.

Since 1261 annual fairs were held in the town. At this time the town had a recorded population of 1,500 and served as a major port on the west coast. The town was occupied by England from 1301 until 1312 as part of the Scottish Wars of Independence.[3]

On 26 April 1315, the first Parliament of Scotland was held in Ayr by Robert The Bruce at St. John's Tower by the sea. Later, in 1652, the town was used as a base and fortress for some of Oliver Cromwell's men. Cromwell established a large fortress along the mouth of the River Ayr and erected walls around the area just south of the River's mouth - most of these walls remain present to this day.[4] St John's Tower, which sat around the centre of the fortress, was originally part of a large church yet this was knocked down during the construction of the fort with the tower being used for military practice; it is now protected by "Friends Of Saint Johns Tower" (FROST) residents in the "Ayr Fort Area" which sits atop the former site of the citadel. A permanent military presence was established in the town with the completion of Ayr Barracks (later known as Churchill Barracks) on the citadel site in 1795.[5]

The Ayrshire Central constituency runs north of the Ayr, Carrick and Cumnock constituency. It takes in the towns of Irvine, Kilwinning, Stevenson, Prestwick, Troon and rural Kyle, running into Annbank. It also incorporates the Woodfield area of Newton-On-Ayr and is represented by SNP MP Philippa Whitford.

In the Scottish Parliament, Ayr still exists as a constituency and has been represented by Conservative MSP John Scott since 2000.[6] The constituency also includes the towns of Prestwick and Troon. Regional MSPs that represent the South of Scotland (including Ayr) are Claudia Beamish (Labour), Chic Brodie (Scottish National Party), Jim Hume (Liberal Democrats), Joan McAlpine (Scottish National Party), Aileen McLeod (Scottish National Party), Graeme Pearson (Labour) and Paul Wheelhouse (Scottish National Party).[7]

Below are the electoral results recorded for the town of Ayr in the 2007 Scottish Parliamentary election: as part of the election, electoral counts were performed by electoral ward, allowing for the results for the town of Ayr to be published.

Party

% of Vote

Conservative

37.1%

Labour

29.9%

Scottish National Party

27.3%

Liberal Democrats

5.1%

Independent

0.7%

These results suggest that in 2011 the results in the town of Ayr itself was marginally contested between the Conservatives and the SNP.

As a former Royal Burgh, Ayr had a Provost as chief magistrate of the burgh council and the earliest recorded provost is Nicholas de Fynvyk. The title of provost was retained by Kyle and Carrick District Council and South Ayrshire council for their civic heads.[8] The role of provost is now apolitical and carries a number of duties including chairing meetings of the council, acting as civic head representing South Ayrshire Council, promotion of South Ayrshire Council and networking with various organisations such as local businesses.[9]

A chain and robes are worn by the provost while undertaking their ceremonial duties. The provost's chain was donated in June 1897 by James McLennan who was a Glasgow wine and spirit merchant who was born in Coylton and lived in Ayr. The official provost's robes have been provided by the council since 11 June 1923. In addition, South Ayrshire Council erects lamp posts with the Royal Burgh Coat of Arms emblazoned on the diffusers outside the official resident of the provost - this has been undertaken since 1854.[8]

Each newly elected provost enters their name into a Bible at the "Kirkin ‘O The Council" service at Ayr Auld Kirk after each council election. The Bible in which the names are entered was acquired by the Kirk during the Provostship of Hugh Miller (1841–1855).[8] The names of the provosts entered into the Bible are as follows:

Ayr is a coastal town which lies on the mouth of the River Ayr. The river then flows out into the larger Firth of Clyde estuary. From the coast the Isle of Arran can be seen, and on a very clear day, the northern tip of Northern Ireland. It is within the region of Strathclyde. Much of the land in and around this area is very flat and low lying, used for rearing dairy cattle. Towards the south of Ayr however the land is higher than most areas in the county of Ayrshire, an example of this being the Brown Carrick Hill which is situated due South of Doonfoot. Ayr lies approximately 35 miles (55 km) southwest of Glasgow.

The area experiences very cool summers and somewhat mild winters. The air is cooler during the summer due to its proximity to the sea as water has a major cooling effect on summer temperatures. During the winter months the reverse happens and the sea air has a major warming effect on the climate. The area rarely ever sees extremes due to the effects of sea air. Rainfall is generally plentiful throughout the year due to Atlantic weather systems sweeping in from the west. Compared with the rest of Scotland, the area rarely sees much mist and fog. This is because the land is relatively flat and low lying and with the wind blowing across the flatter land, this generally hinders fog from developing widely. This has made Glasgow Prestwick International Airport particularly well known as one of the less fog-prone airports in Scotland. Snowfall is rare in this part of Scotland because of the mild sea air.[12]

Ayr's industry has flourished over the years mainly because of the River Ayr. Ships that were built on the mouth of the River Ayr in the eighteenth century improved Ayr's economy. From 1883 to 1901, 143 ships and barges were built on the Ayr by Samuel B Knight and the Ailsa Shipbuilding Company. Repair work on the Ayr ceased in 1960 when Ailsa moved its operations to Troon.

The North side of Ayr Harbour still operates as a commercial port today, mainly exporting coal, and extensive railway sidings still lead down from the main railway line near Newton-on-Ayr station.

Manufacturing of textiles such as carpets and lining was important to Ayr's economy until the factories closed in the 1970s. This caused mass unemployment in Ayr. Many of the old factories are still standing and can be seen on McCalls Avenue and Walker Road in Lochside, North Ayr, though many are derelict and unsafe. There was a large factory engaged in the production of fertilisers and other agricultural products. This has since closed, but parts of the old complex are sublet by local businesses.

Ayr has always been a hub for shopping in South Scotland with the first department store, Hourstons, opening in 1896. In the 1970s the opening of stores such as Marks and Spencers and Ayr's first shopping centre, the Kyle Centre (1988) encouraged an expansion in the local economy. Heathfield Retail park, an out-of-town retail park, opened in 1993 with shops such as Halfords and Homebase. Ayr Central Shopping Centre opened in March 2006 with shops such as Debenhams and H&M and underparking for 500 cars. In December 2014 Threesixty Architecture received planning permission to refurbish the Kyle Centre by reinventing it as a centre of leisure through the creation of a new cinema complex among other new features.[13] As of 2014 Royal Society for Public Health found Ayr's High Street to be the second healthiest in the United Kingdom behind Shrewsbury.[14]

During the 19th and 20th centuries Ayr became a popular holiday resort. This was due to its fine sandy beach and its popularity was increased by the building of the rail link to Glasgow in 1840.[15]

The town also has bus connections serving all of the town and Prestwick. These services are operated by Stagecoach West Scotland. The town has eight local services. There are express coaches to Glasgow Buchanan Street every 30–60 minutes. Ulsterbus operate bus services to Belfast via Stranraer Ferry service on Stena Line.

Although the town does not have any ferry services from its harbour, it has good access to ferry services mainly to Northern Ireland. Troon, 5 miles (8 km) north of Ayr, has a seasonal service to Larne onboard P&O. Troon can also be reached by train with trains every 30 minutes, or by bus. Stranraer, 60 miles (100 km) south of Ayr, has up to eight daily departures to Belfast.

At the United Kingdom Census 2001, Ayr had a population of 46,431, a fall of -3.2% on 1991.[18] Mid-2008 population estimates placed the total resident population at 46,070 making Ayr the 12th largest urban area in Scotland.[19] The 2011 census has shown that Ayr’s population has grown by around 0.9% since the 2001 census - this surpassed the population growth of Ayr and Prestwick which only grew by 0.63% which fell short of the national population growth of Scotland of 4.61%.

In 2001 nearly 0.36% (167) people in the town could speak Scottish Gaelic - this fell to 0.34% (161) in 2011. South Ayrshire Council provides no educational support for the language.[20]

Prestwick Academy is located within the neighbouring town of Prestwick and provides education to pupils who are resident within Ayr but fall within its catchment area.[25] Mainholm Academy was a former secondary school located within Ayr and was closed due to safety concerns.[26]

Ayr is home to The Gaiety Theatre. Built in 1902, reconstructed after a fire in 1904, its façade remodeled in 1935, and further reinstated after a fire in 1955. In 1995, an annex was constructed, including a new café, box office, dressing rooms and studio space. After a faltering start, which saw several years as a cinema after WWI, the theatre was bought by Ben Popplewell, from Bradford who already had a track record of success running the Pavilion theatre on Ayr seafront. For fifty years the Popplewell family ran the theatre – latterly as part of the Glasgow Pavilion business. During this time the Gaiety developed a reputation as a variety theatre with a ‘summer’ variety show – the Gaiety Whirl – which ran for 26 weeks at its height. Many Scottish and UK stars appeared regularly on its stage, and several started their careers there. The programme offered more than a summer show however, with several weeks of Shakespeare and regular transfers from Glasgow Citizens theatre, being part of a varied offer. After seventy years in private ownership the local Council acquired the Gaiety theatre freehold in 1974. It then operated as a municipal theatre under direct local authority management. After many years of successful operation the theatre began to lose audiences and the Council felt the revenue subsidy it provided and the requirement for capital investment required a new approach. In January 2009 the theatre closed, leaving Ayr without a theatre. The closure was met with considerable opposition and dismay among many Ayr residents, particularly since it appeared that the required capital and revenue investment to reopen the theatre would not be available. A public meeting attracted over 400 attendees, the future of the theatre was a key issue in the local press, many Scottish performers expressed their dismay and there was extensive discussion on social media. In early 2009 South Ayrshire Council invited tenders to take on the theatre management. The Ayr Gaiety Partnership (AGP), a charity formed for the purpose in Summer 2009, secured preferred bidder status. Just over three years later, having secured financial backing from the Council and Scottish Government, as well as from local fundraising, AGP took on a 99-year lease of the theatre.

To the north of Ayr is the adjoining town of Prestwick, which is famous for its golf and its aviation industry thanks to the presence of Glasgow Prestwick International Airport. Only 5 miles (8 km) north of Ayr is Troon, also famous for its golf and for hosting the Open Championship. Ayr has three golf courses in Bellisle, Seafield and Dalmilling, as well as a private one called St Cuthberts.

The radio station West FM is based in Ayr and broadcasts on 96.7FM.[31] West FM is the main broadcaster in the Ayrshire area. Furthermore, the Ayrshire Post and Ayr Advertiser newspapers are based in Ayr.[32] The Ayr Advertiser is Scotland's oldest weekly newspaper.

Ayr Racecourse is a well-known racecourse in Scotland and hosts both National Hunt and flat racing. It has the largest capacity in Scotland for horse racing.[citation needed] Notable events include the Scottish Grand National (April) and Ayr Gold Cup (September) as well as several night meetings. It was recently put up for sale by the owners and included the Western House Hotel as part of the potential sale.

The town has a strong history of ice hockey up to professional standard but no longer hosts a professional ice hockey team. The most recent professional team were the Ayr Scottish Eagles who played in the British Superleague between 1996 and 2002 based at the Centrum arena. During this time they have success most famously their grand slam season in 1997–98 winning all 4 titles available and becoming British Champions. The following season seen them compete in the European Hockey league with famous victories home and away to Russian champions AK Bars Kazan. Eagles finished 3rd in a group also containing clubs from Germany and Czech Republic. The Centrum closed in 2003 and was demolished in 2009 to make way to a Sainsbury supermarket.

Ayr's rugby union team, Ayr RFC, play at Millbrae and are reigning Scottish Cup Champions and Scottish Premiership Champions 2012/2013, and won the 2008/09 Scottish Hydro Premiership. Ayr RFC have twice competed in the British and Irish cup involving clubs from Scotland, England, Wales and Ireland.

Ayr only has one leisure centre, this being the Citadel, which opened in 1997, located at the mouth of the River Ayr and at the seafront at the South Harbour area. Its facilities include a main hall measuring 34 m × 27 m (112 ft × 89 ft). This hall can accommodate various sports including 5-a-side football, basketball, volleyball, netball, indoor hockey, indoor cricket practise, badminton and short tennis. As well as individual sports, sporting events and competitions, the hall has hosted exhibitions, concerts, trade fairs, election counts and awards ceremonies. The Citadel is an expansion of the Ayr swimming pool, which opened in 1972. The Citadel features a Dance Studio approx 124 m2 (1,330 sq ft). It is predominantly used for dance or exercise classes but also accommodates martial arts groups and drama workshops and two glass backed squash courts. The Citadel Leisure Centre in Ayr is home to South Ayrshire Volleyball Club[33] as well as being the town's only public swimming pool and diving pool. The leisure centre has squash courts, a gymnasium, dance studio, cafeteria and adjacent salons and youth club. An Ayrshire basketball team, the Troon Tornadoes, play their national league matches at the Citadel, despite not being an Ayr team. Additionally, Ayr has a Strathclyde league basketball team, Ayr Storm.

Ayr is also home to Scottish Bowling. The greens at Northfield host the Bowls Scotland and SYBA finals each year as well as the Hamilton Trophy final. Both the Ladies and Gents World Championships have been held at the Northfield complex as have international series and the Atlantic Rim Championships. Ayr Indoor Bowling Green is the oldest existing indoor bowling stadium in the world.

Ayr beach

Speedway was staged at Dam Park in 1937, when two meetings, organised by Maurice and Roland Stobbart from Cumbria took place, featuring riders who raced in the north of England, at venues such as Workington and Hyde Road in Manchester.

Ayr has a sandy beach with an esplanade. This is very popular with joggers and day-trippers. Whitletts Activity Centre also serves the town of Ayr. It has an 11-a side outdoor soccer pitch and an indoor 5-a-side football pitch. Near Whitletts Activity Centre there is also a 5-a-side football complex called "Pro Soccer".

The NHS Ayrshire and Arran Health Board serves South, East and North Ayrshire – a part of Ayrshire and Arran's departmental headquarters is located in Ayr. Ayr is also the regional headquarters of the Scottish Ambulance Service for south-west Scotland that is located in Heathfield, next to the site of the old Heathfield Hospital.

Ayr previously had four hospitals: Heathfield Hospital (originally a fever hospital, but latterly medical and ophthalmic), Seafield Hospital (a children's hospital), Ayr County (originally a voluntary hospital, and latterly confined to surgery) and Ailsa Hospital (a psychiatric hospital). Ayr Hospital was built in 1993 which replaced all but Ailsa Hospital which is still open.