A city attorney is like a big helper for the leaders of a city. They make sure that everyone is following the rules and laws in the city, and if someone breaks the rules, they help decide what to do about it. They also help the leaders of the city make new rules and laws to make sure that everyone is safe and happy in the city. They work really hard to keep the city running smoothly and make sure that everyone is treated fairly and equally. Basically, they are like the city's super smart problem solvers!