Aubagne is located in the Huveaune valley and surrounded by the mountain ranges of Garlaban with Sainte-Baume to the north and Douard to the south 17 km (11 mi) east of Marseille Port. Aubagne is the main city of the Agglomeration community of Pays d’Aubagne et de l’Etoile and the sixth largest city of the department of Bouches-du-Rhône by its population. The main railway from Marseille passes through the commune splitting into two lines – one going north-west and one going south with a station in the town. The Huveaune river flows through the commune from the east flowing west into the Mediterranean sea at Prado beach in the 8th Arrondissement in Marseilles.
Agenda 21 sets the terms and conditions for sustainable development in Aubagne which includes providing free public transit, offering a recycling program, encouraging energy conservation and energy demand management, launching awareness campaigns in schools to promote sustainable development and eco-citizenship, and giving incentives for purchasing solar panels. More than 4,000 individual bins and 15,000 recycling bags are available to residents. The city of Aubagne conducts its environmental, social, and economic policies in collaboration with neighbouring communities to help enhance sustainable development and improve living conditions. Compiègne and Châteauroux have done the same but with goals that are more socioeconomic: making the centre of town more dynamic, improving buying power, reducing isolation, etc.
Since 1962 the Foreign Legion Command and the 1st Foreign Regiment of the Foreign Legion has had 800 men stationed at Aubagne. The French Foreign Legion Museum is located at Aubagne in the Viénot barracks: it commemorates all of the military campaigns of the Legion in history with displays showing the evolution of uniforms, weapons, and decorations until today. The crypt houses the wooden hand of Captain Jean Danjou.