In its early stages, if melanoma is confined to the skin (primary melanoma), surgery to remove the affected skin is generally recommended. If the melanoma is thin and has not invaded surrounding tissues or spread, surgical excision may cure the melanoma. Surgery is also used in many cases when melanoma has spread. In fact, surgery can be used to remove melanomas from lymph nodes (using a lymph node dissection), the lungs, the liver, and more.
Depending on where the melanoma is on your body, and how thick it is, the surgery to remove it may leave a scar. You might need another surgery to repair this scar.