Wash the apricots thoroughly and remove the pits.
Combine the prepared apricots and sugar in a pot and mix well.
Simmer slowly over medium-low heat.
Remove the foam as it forms and cook until the mixture thickens.
Add lemon juice, stir once more, then turn off the heat.
Pour into sterilized glass jars and let cool.