Madrid is generally safe for solo female travellers. The city is well-lit and has a good public transportation system, making it easy to get around. Additionally, Madrid is a very popular tourist destination, so there are plenty of people around to help if you need it.