Socks are worn over shin guards. There are two types of shin guards: one with ankle protection and one without ankle protection. Both are worn underneath socks.
Shin guards without ankle protectors should be worn underneath a compression sleeve as well as the sock in order to hold it in place. Shin guards without ankle protection are lighter and less restrictive, and they're typically used by more experienced players. Shin guards with ankle protectors are used to protect the ankles from kicks, and they are typically used by younger, inexperienced players. Shin guards and compression sleeves must be hidden completely underneath the socks, according to general soccer rules.