Wash the apricots thoroughly and remove the pits.
Cut the prepared apricots into small pieces.
Combine the apricots and sugar in a pot and mix.
Simmer over medium-low heat, stirring slowly.
Skim off any foam and turn off the heat when it thickens.
Pour into sterilized glass jars, let cool, and store.