There are several potential causes of swollen legs and ankles. Some causes, such as standing or walking for long periods, are normal and generally harmless. However, sudden or chronic swelling in the legs and ankles may indicate an underlying health condition.
Source: Medical News Today