The capital has lived some pretty dark days in its recent past, but it's also one of the places which has seen the biggest security improvement. Nowadays, I personally believe that Baghdad is a safe city to travel to. There's a lot of security, you can walk around freely, and the locals are very nice.