It lies between Punta Sabinar and Cabo de Gata. It is shaped as a semicircle opened to the south with a protrusion in its center featuring the mouth of the Andarax river. Scholars placing ancient Urci in Pechina identify the Sinus Urcitanus cited by Pomponius Mela with the Gulf of Almería.
Caliph Abd al-Rahman III founded the city in 955. The city grew wealthy during the Islamic era, becoming a world city throughout the 11th and 12th centuries. It enjoyed an active port that traded silk, oil, and raisins. This period was brought to an end with the 1147 conquest of the city by a Christian coalition. Control over Almería switched hands over the rest of the middle ages. In the early modern period, with the onset of Barbary piracy, the ethnic cleansing of moriscos in the Kingdom of Granada, and several natural calamities, urban decay accrued. The 19th-century reactivation of mining activity (lead) in the hinterland fostered commercial activity and demographic growth.