Buying tickets in advance is recommended but there also are ticket machines in the train stations. There are a number of ways to purchase high-speed train tickets in Spain. Renfe is the national train operator, operating the AVE high-speed trains and also regional trains.