The name comes from Tupi. A maceió is a spring, or a lagoon that forms at the sea's edge, cut off by a sandbar until the tide opens it. The area has many of them, which is also where the state name Alagoas comes from. The city still sits between the Mundaú Lagoon and the Atlantic.
The city grew out of a sugar mill and plantation complex. Its first impetus was ships calling at Jaraguá bay to load wood. Once the mills were running, the place began exporting sugar, and later tobacco, coconut, leather and some spices.
The port made the town. The Port of Jaraguá sits on a natural harbour beside the Mundaú lagoon, and trade through it drew the settlement that became the state capital.
Money turned the settlement into a village on 5 December 1815. Growth continued, and on 9 December 1839 Maceió became the capital of Alagoas. A port that handled sugar in the colonial period had become a seat of government within about a generation.
Sugar has not gone away. The region still grows cane for sugar and ethanol, and a chemical industry on the outskirts draws on brine from deep wells. But the change you see on the seafront is tourism: over roughly the last thirty years, the beach districts filled with hotels, restaurants, bars and clubs, aimed at Brazilians as well as visitors from Argentina, Italy, France, Germany and the United States.
The metropolitan area had about 1.35 million people as of 2021. Close to 1.9 million passengers passed through the airport that year, and it has flights to Lisbon and Buenos Aires. Cruise ships dock at Jaraguá too: the largest to call was the MSC Seashore in 2022.