Hamadan is a moderately safe city for solo female travelers. While Iranian people are generally respectful and hospitable, females are required to observe the Islamic dress code. There might be instances of attention-getting due their foreign appearance but typically, nothing serious. However, a level of caution is necessary, especially during evenings. Learning a few Farsi phrases and maintaining discretion in public spaces can greatly enhance your travel experience.