The two main stations are Atocha and Estación de Madrid - Chamartín - Clara Campoamor, where you can catch medium distance, long distance, high speed, and suburban trains. You can also catch international trains to and from France and Portugal in Madrid.