Smart city initiatives are on the rise worldwide to provide a healthier and secure living environment for the citizens living in urban areas. The goal of smart city development is to optimally use the available resources effectively and efficiently for an improved lifestyle. Emerging information and communication technology (ICT) components play a major role in developing the smart city. With digital transformation, cities are digitized but “intelligence” is required for a city to become smarter. The two major ICT components involved in making cities “smarter” are artificial intelligence and the Internet of Things. To provide a better living environment, the day-to-day activities of the people are integrated with these smart technologies. The smart city applications generate a huge volume of data from millions of sensors, autonomous machines, and intelligent IoT devices, and analysis and interpretation of this data helps to make more intelligent decisions. This chapter gives a detailed view of AI and IoT technologies and their relationship with the smart city applications which helps in building the smart city. It also describes the layered architecture involved in the development of a smart city.