Auto filling of list property based on other list property

Hello community,
I have two types of objects: countries and cities. I have created two drop-down lists for these two objects.
I want to retrieve the list of cities belonging to the country selected by the user.
How do I do this?