The calculated distance (air line) between Castro Marim and Barreiro is approximately 133 miles respectively 215 kilometers.
By car or train, the actual journey to Barreiro is certainly longer, as only the direct route (as the crow flies) between Castro Marim and Barreiro has been calculated here.
Air line (approximately)
215 kilometers
116 nautical miles