Artists use various techniques to capture the essence of architecture in their paintings, such as emphasizing the lines and shapes of the building, playing with light and shadow, and using color to convey mood and atmosphere. They also pay attention to details and textures to create a realistic representation of the structure.