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