Transport
Around the city
Public transport is easy to use and very comfortable to move around the city and the suburbs. It includes a subway system, a commuter rail system, and buses.
There are different tickets that you can get but if you are going to be in Madrid for only a few days, you might be interested in the tourist ticket.
On the official page for transport, you can find all you need, including car rental and taxi information.