If you have a sprain on the back of your foot from playing basketball that causes swelling, be sure to go to the hospital for an examination. Because of the injuries caused by sports, sometimes it can lead to fractures of the dorsal foot joints, such as the more common fractures and dislocations of the metatarsophalangeal joints, or even serious ligament ruptures, resulting in instability of the foot arch and corresponding collapse and deformation. Therefore, you must be able to go to the hospital for a detailed examination and take regular and correct treatment, otherwise you are prone to foot deformation and corresponding dysfunction and pain. If it is simply for swelling and pain, braking rest and supportive symptomatic treatment can be taken. Braking rest should be bed rest, elevating the affected limb to facilitate blood return to the lower limb and eliminate swelling, while oral anti-inflammatory and analgesic drugs can be taken to reduce swelling. Commonly used are non-steroidal anti-inflammatory and analgesic drugs, such as diclofenac or celecoxib. Drugs to promote blood circulation and blood stasis are commonly used, such as Tongluo Kaiqiao tablets, or oral drugs to promote venous power, such as horse chestnut seed extract and Mai Zhi Ling tablets. Usually it takes 3-4 weeks to fully recover, during which time you should rest as much as possible and be less active. In case of serious ligament damage and bone damage, plaster cast should be taken if necessary and treated accordingly.