This visual execution trace shows how nested models work in FastAPI using Pydantic. First, we define a simple Address model with city and country fields. Then, we define a User model that includes an Address as a nested field. When creating a User instance, we can pass a dictionary for the address, and Pydantic automatically converts it into an Address instance. Accessing nested fields like user.address.city returns the expected values. If nested data types are wrong, such as city being a number instead of a string, validation fails and raises an error, preventing instance creation. This ensures data is structured and validated deeply, making nested models powerful for complex data shapes.