Dark spots or pigmentation is mainly caused due to internal disorders. Pigmentation or dark spots affect the color of the skin and the complexion. Malfunctioning of the liver or endocrine glands is considered the main reasons behind such an occurrence.
It is best to go to a doctor and make sure there are no underlying causes for the dark spots. It could be just pigmentation issue or something more serious but wither way your doctor should determine this.