Ankles are retaining water and leaving prints

My ankles have been swollen like retaining water for 4 months they leave imprints from my shoes and socks and some of my shoes it hurts to wear them… My arch area have sore spots and I haven’t injured them in anyway

See doctor for proper diagnosis. Keeping your leg elevated, and wearing compression stockings may help.