At night, you should avoid the area south of Lavapiés, around the Atocha train station, as well as any deserted parks. If you plan to wander around the El Rastro flea market in La Latina and Lavapiés on Sundays as it's a favorite are for opportunistic pickpockets.