This scene showing the execution of Paco Roman (Tony
Musante) in 1968’s “The Mercenary was filmed in Pechina, Almería, Spain.
Here’s the same exact location as seen today in 2023.
I think I've seen that location in other Spaghetti Westerns before but I can't remember when. It was so long ago that the memory escapes me.