The calculated distance (air line) between Marrakesh and Safi is approximately 86 miles respectively 138 kilometers.
By car or train, the actual journey to Safi is certainly longer, as only the direct route (as the crow flies) between Marrakesh and Safi has been calculated here.