People have lived here for two thousand years. Gauls founded a town on the site in the 1st century BC, and by the late 4th century Rome had a fort at Saint-Servan to guard the Rance estuary against sea raiders. Britons fleeing across the Channel then settled Brittany. Monks founded the settlement in the early 6th century, and the town took its name from Malo, said to have been a Welsh follower of Brendan the Navigator.
The first settlement stood at Aleth, 3 km south of today's walls. Its cathedral went up in 920 and lost its status in 1144, and the ruin still stands on the Aleth peninsula. The new Saint-Vincent cathedral, built in the 1150s and 60s, now anchors the old town. The town that grew around it sat on a granite island, linked to the mainland only by a sand spit and mudflats called the Sillon. A first road, with some stonework, dates from 1509.
Malouins have a long habit of going their own way. From 1590 to 1594 the town declared itself a republic and ran itself as a city-state, which gave it the motto "not French, not Breton, but Malouin". Its wealth came from the sea, partly from trade and partly from the corsairs, privateers licensed to attack enemy ships. They made English vessels in the Channel pay tribute. The raiding lasted from the 16th to the 18th century, until national navies had bigger guns.
Ships from here also went far out into the Atlantic. Jacques Cartier, born in town in 1491, made three voyages to what is now Canada and charted the lower St Lawrence. He visited the villages of Stadacona and Hochelaga, where Quebec City and Montreal now stand. He came home with what he took for diamonds, which were worthless pyrites. In 1764 Louis-Antoine de Bougainville sailed from here and named the Falklands after the people of Saint-Malo, which is where the Spanish name Malvinas comes from.
The forts offshore belong to the late 17th century. Petit Bé was begun in 1689, and Fort National and Fort de la Conchée followed in the 1690s, the first to a Vauban design. The Conchée was given up in 1901. In 1758 a British force skipped the walled town and landed at Saint-Servan instead, where it burned 30 privateers before leaving. The writer Chateaubriand, born in 1768, later described the town of the 1770s in his memoirs.
In August 1944 American shells and bombs nearly wiped out the old town. About eight thousand German troops were inside the town when the battle began, and their commander, Colonel von Aulock, refused to surrender. The walled city was burning by 13 August, and the last holdout in the citadel gave in on 17 August. The garrison on the island of Cezembre held out until 2 September, when its water ran out.
Rebuilding took twelve years, from 1948 to 1960, and the old town was restored with care. In 1967 Saint-Servan and Paramé merged with Saint-Malo, more than doubling the commune's population. It is the most visited place in Brittany, and its population of about 47,000 can swell to as many as 300,000 in summer.