Buying a used car in Spain

Yes Andrew that's exactly what I am after. I've imported cars before, I understand the import process, it's the purchasing as a non Spanish resident that I don't get.