Slavery in Afghanistan was present in the post-Classical history of Afghanistan, continued during the Middle Ages, and persisted into the 1920s.
The origin of the enslaved people in Afghanistan shifted during different periods, and slaves in Afghanistan never had any particular ethnicity. Slavery was formally abolished in 1923.