The Taliban's Supreme Court announced the flogging of two people in Ghazni province.
The court said on Wednesday that the men were sentenced to 39 lashes for "immorality" and two years in prison each.
In the statement, the court said that the sentence was carried out in public by the Court of First Instance of the Muqar district of Ghazni province.
The Taliban did not provide details about the identities of these individuals. In the past week, the group has flogged at least six people in Laghman, Kandahar and Faryab provinces on various charges.
After regaining control of Afghanistan, the Taliban has repeatedly punished individuals on various charges in public.
Human rights organisations consider corporal punishment of individuals to be contrary to international law and human dignity and call for an end to it.