Is Santiago a state or city in Chile?

Santiago is a commune (downtown Santiago). but there is also a urban area in the Metropolitan Region of Santiago (RM). That's the reason why there are places called "Las Condes, Santiago", "Vitacura, Santiago" or "Santiago, Santiago".