Mediates efflux of magnesium ions from mitochondria, suggesting a role in magnesium homeostasis. RNAi-mediated knockdown results in accumulation of magnesium ions in mitochondria, and reduced lifespan. A magnesium-deficient diet rescues the reduced lifespan phenotype. Belongs to the mitochondrial carrier (TC 2.A.29) family.