Smart cities enhance public safety through surveillance systems, emergency response coordination, and predictive analytics to prevent and respond to crime.