The calculated distance (air line) between Mahdia and El Hamma is approximately 133 miles respectively 213 kilometers.
By car or train, the actual journey to El Hamma is certainly longer, as only the direct route (as the crow flies) between Mahdia and El Hamma has been calculated here.