Yes, both are easily reached by Cercanías suburban rail or bus from Madrid in under an hour. A full morning departure gives comfortable time to explore before returning in the afternoon or evening. El Escorial and Alcalá de Henares can also be combined on a longer day if you plan carefully.
A verified photograph is not yet available for this topic.
